Fixed dependencies
authorhristov <Peter.Hristov@cern.ch>
Thu, 4 Dec 2014 11:29:44 +0000 (12:29 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:52:06 +0000 (13:52 +0100)
PHOS/PHOSUtils/CMakeLists.txt

index 7ec8eb2..09a5297 100644 (file)
@@ -41,7 +41,7 @@ string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 get_directory_property(incdirs INCLUDE_DIRECTORIES)
 generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}")
 
-set(ROOT_DEPENDENCIES Core EG Geom Physic)
+set(ROOT_DEPENDENCIES Core EG Geom Physics)
 set(ALIROOT_DEPENDENCIES STEERBase)
 
 # Generate the ROOT map
@@ -58,7 +58,7 @@ add_dependencies(${MODULE}-object ${ALIROOT_DEPENDENCIES})
 add_library(${MODULE} SHARED $<TARGET_OBJECTS:PHOSUtils-object>)
 
 # Linking
-target_link_libraries(${MODULE} ${ALIROOT_DEPENDENCIES} ${ALIROOT_DEPENDENCIES})
+target_link_libraries(${MODULE} ${LIBDEPS})
 
 # Setting the correct headers for the object as gathered from the dependencies
 target_include_directories(${MODULE}-object PUBLIC $<TARGET_PROPERTY:${MODULE},INCLUDE_DIRECTORIES>)