]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/TOFbase/CMakeLists.txt
VZERO DAs + Object target dependencies
[u/mrichter/AliRoot.git] / TOF / TOFbase / CMakeLists.txt
index 12ec656e41d3012983913f9fd5e3d9dcf6fef79f..cc5134d5c9f36c1e72539e271c8aea8f601b1a6b 100644 (file)
@@ -102,6 +102,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:TOFbase-object>)