Skip to content

Commit 92442d3

Browse files
ktfsawenzel
authored andcommitted
Correctly pickup nlohmann_json
1 parent 95f7857 commit 92442d3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ add_subdirectory(TEPEMGEN)
1010

1111
add_subdirectory(GeneratorCosmics)
1212

13+
find_package(nlohmann_json REQUIRED)
1314
add_subdirectory(GeneratorParam)
1415

1516
add_subdirectory(GeneratorSlowNucleons)

GeneratorParam/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ROOT_GENERATE_DICTIONARY(G__GeneratorParam ${HEADERS} LINKDEF GeneratorParamLink
2929

3030
#---Create a shared library with geneated dictionary
3131
add_library(GeneratorParam SHARED GeneratorParam.cxx GeneratorParamLibBase.cxx GeneratorParamMUONlib.cxx GeneratorParamEMlib.cxx GeneratorParamEMlibV2.cxx PythiaDecayerConfig.cxx ExodusDecayer.cxx TPythia6.cxx TPythia6Decayer.cxx TMCParticle.cxx G__GeneratorParam.cxx)
32-
target_link_libraries(GeneratorParam ${ROOT_LIBRARIES} ${VMC_LIBRARIES} ${PYTHIA6_LIBRARY})
32+
target_link_libraries(GeneratorParam ${ROOT_LIBRARIES} ${VMC_LIBRARIES} ${PYTHIA6_LIBRARY} nlohmann_json::nlohmann_json)
3333

3434

3535
set_target_properties(GeneratorParam

0 commit comments

Comments
 (0)