Skip to content

Commit 6c1fc6a

Browse files
authored
Merge pull request #72 from JETSCAPE/roch/cmake_ipglasma_flag
CMake IP-Glasma flag
2 parents d4b3634 + a8ffd3b commit 6c1fc6a

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

CMakeLists.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (OPENCL_FOUND)
6767
endif (USE_CLVISC)
6868
endif (OPENCL_FOUND)
6969

70-
# IPGlasma. Turn on with 'cmake -DUSE_IPGLASMA=ON'.
70+
# IP-Glasma. Turn on with 'cmake -DUSE_IPGLASMA=ON'.
7171
option(USE_IPGLASMA "Build with IP-Glasma" OFF)
7272
if (USE_IPGLASMA)
7373
message("Includes for IP-Glasma ...")
@@ -402,17 +402,17 @@ if (USE_3DGlauber)
402402
endif()
403403

404404

405-
if (USE_IPGlasma)
405+
if (USE_IPGLASMA)
406406
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/external_packages/ipglasma")
407-
message(FATAL_ERROR "Error: IPGlasma source has not been downloaded in external_packages by ./get_ipglasma.sh")
407+
message(FATAL_ERROR "Error: IP-Glasma source has not been downloaded in external_packages by ./get_ipglasma.sh")
408408
endif()
409409
if (${GSL_FOUND})
410-
message("Building IPGlasma ...")
410+
message("Building IP-Glasma ...")
411411
add_subdirectory(./external_packages/ipglasma)
412412
else()
413-
message (FATAL_ERROR "GSL are necessary for ipglasma" )
413+
message (FATAL_ERROR "GSL is necessary for IP-Glasma" )
414414
endif()
415-
target_compile_definitions(JetScape PRIVATE USE_IPGlasma)
415+
target_compile_definitions(JetScape PRIVATE USE_IPGLASMA)
416416
endif()
417417

418418
if (USE_MUSIC)
@@ -515,9 +515,9 @@ endif (USE_SMASH )
515515

516516

517517
# executables with additional dependencies
518-
if ( USE_IPGlasma )
518+
if ( USE_IPGLASMA )
519519
target_link_libraries(runJetscape ${GSL_LIBRARIES})
520-
endif (USE_IPGlasma )
520+
endif (USE_IPGLASMA )
521521
if ( USE_MUSIC AND USE_ISS )
522522
target_link_libraries(runJetscape ${GSL_LIBRARIES})
523523
endif (USE_MUSIC AND USE_ISS )
@@ -539,12 +539,12 @@ endif(USE_ROOT)
539539
# -----------------------------------------------------------
540540
#### copy essential files for MUSIC to build/
541541
file(COPY ./external_packages/trento/nucleusConfigs DESTINATION ${CMAKE_BINARY_DIR}/)
542-
if (USE_IPGlasma)
542+
if (USE_IPGLASMA)
543543
if(EXISTS "${CMAKE_SOURCE_DIR}/external_packages/ipglasma/")
544544
file(COPY ${CMAKE_SOURCE_DIR}/examples/test_ipglasma_files/ipglasma.input DESTINATION ${CMAKE_BINARY_DIR}/)
545545
file(COPY ${CMAKE_SOURCE_DIR}/external_packages/ipglasma/qs2Adj_vs_Tp_vs_Y_200.in DESTINATION ${CMAKE_BINARY_DIR}/)
546546
else()
547-
message(FATAL_ERROR "Error: Cannot find files for IPGlasma.")
547+
message(FATAL_ERROR "Error: Cannot find files for IP-Glasma.")
548548
endif()
549549
endif()
550550
if (USE_FREESTREAM)

src/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ endif()
3737
FILE(GLOB initialstatesources initialstate/*.cc)
3838
set (SOURCES ${SOURCES} ${initialstatesources} )
3939
## Take care of options
40-
if(NOT "${USE_IPGlasma}")
40+
if(NOT "${USE_IPGLASMA}")
4141
list (REMOVE_ITEM SOURCES ${CMAKE_SOURCE_DIR}/src/initialstate/IPGlasmaWrapper.cc)
4242
endif()
4343

@@ -135,7 +135,7 @@ if ( ${HEPMC_FOUND} )
135135
endif()
136136
endif()
137137

138-
if ( USE_IPGlasma)
138+
if ( USE_IPGLASMA )
139139
target_link_libraries (JetScape ipglasma_lib)
140140
endif()
141141

0 commit comments

Comments
 (0)