Skip to content

Commit

Permalink
Merge pull request #62 from rest-for-physics/jgalan_ifdef_libs_fix
Browse files Browse the repository at this point in the history
CMakeLists.txt adding detectorlib dependency
  • Loading branch information
jgalan authored May 30, 2022
2 parents 6458acf + e3f76f1 commit 0667f8a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
set(LibraryVersion "1.6")
add_definitions(-DLIBRARY_VERSION="${LibraryVersion}")

COMPILELIB("")
set( deps detector )

if (NOT ${RESTLIB_DETECTOR} MATCHES "ON")
list(REMOVE_ITEM deps detector)
endif ()

COMPILELIB(deps)

file(GLOB_RECURSE MAC "${CMAKE_CURRENT_SOURCE_DIR}/macros/*")
INSTALL(FILES ${MAC} DESTINATION ./macros/raw)
Expand Down

0 comments on commit 0667f8a

Please sign in to comment.