]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/RAWDatasim/CMakeLists.txt
VZERO DAs + Object target dependencies
[u/mrichter/AliRoot.git] / RAW / RAWDatasim / CMakeLists.txt
index 10d5f3cdec2ff222953fe45f97df2e283408e532..be9203eb616b83143553f2bda3289fee1387d829 100644 (file)
@@ -52,6 +52,8 @@ generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}
 # Create an object to be reused in case of static libraries 
 # Otherwise the sources will be compiled twice
 add_library(${MODULE}-object OBJECT ${SRCS} G__${MODULE}.cxx)
+# Follow headers dependencies
+add_dependencies(${MODULE}-object ${ALIROOT_DEPENDENCIES})
 # Add a library to the project using the object
 add_library(${MODULE} SHARED $<TARGET_OBJECTS:RAWDatasim-object>)
 target_link_libraries(${MODULE} ${ROOT_DEPENDENCIES} ${ALIROOT_DEPENDENCIES})