From 3dd560ccc3fce69b42d04e6a28f8c7336fc9272c Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin <dmitry.kalinkin@gmail.com> Date: Sun, 23 Apr 2023 15:04:50 -0400 Subject: [PATCH] Remove unnecessary `${}` Co-authored-by: Andre Sailer <andre.philippe.sailer@cern.ch> --- CMakeLists.txt | 6 +++--- DDTest/CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4764bcc8f..35a9b11fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -159,16 +159,16 @@ if(DD4HEP_USE_HEPMC3) find_package(HepMC3 REQUIRED) # Optional dependencies for compressed input support - if(${HEPMC3_VERSION} VERSION_GREATER_EQUAL "3.02.05") + if(HEPMC3_VERSION VERSION_GREATER_EQUAL "3.02.05") option(DD4HEP_HEPMC3_COMPRESSION_SUPPORT "Enable reading of compressed HepMC files" ON) - if(${DD4HEP_HEPMC3_COMPRESSION_SUPPORT}) + if(DD4HEP_HEPMC3_COMPRESSION_SUPPORT) find_package(ZLIB REQUIRED) find_package(LibLZMA REQUIRED) find_package(BZip2 REQUIRED) endif() else() option(DD4HEP_HEPMC3_COMPRESSION_SUPPORT "Enable reading of compressed HepMC files" OFF) - if(${DD4HEP_HEPMC3_COMPRESSION_SUPPORT}) + if(DD4HEP_HEPMC3_COMPRESSION_SUPPORT) message(FATAL "HepMC3 v3.2.5 is required for -DDD4HEP_HEPMC3_COMPRESSION_SUPPORT=ON") endif() endif() diff --git a/DDTest/CMakeLists.txt b/DDTest/CMakeLists.txt index a2b7d56ff..d3871b0a0 100644 --- a/DDTest/CMakeLists.txt +++ b/DDTest/CMakeLists.txt @@ -60,7 +60,7 @@ if (DD4HEP_USE_GEANT4) if(DD4HEP_USE_HEPMC3) set(TEST_HEPMC3_EXTENSIONS) - if(${DD4HEP_HEPMC3_COMPRESSION_SUPPORT}) + if(DD4HEP_HEPMC3_COMPRESSION_SUPPORT) file(ARCHIVE_CREATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/Pythia_output.hepmc.gz PATHS ${CMAKE_CURRENT_SOURCE_DIR}/inputFiles/Pythia_output.hepmc -- GitLab