Skip to content
Snippets Groups Projects
Commit 29ba2b0f authored by Andre Sailer's avatar Andre Sailer
Browse files

DDParsers: boost is mandatory, no need for ifs

parent b6715d39
No related branches found
No related tags found
No related merge requests found
...@@ -10,17 +10,14 @@ ...@@ -10,17 +10,14 @@
# #
#================================================================================= #=================================================================================
dd4hep_print(STATUS "|++> Will build DDParsers")
file(GLOB DDParsers_SOURCES src/Parsers/*.cpp src/Evaluator/*.cpp) file(GLOB DDParsers_SOURCES src/Parsers/*.cpp src/Evaluator/*.cpp)
if(Boost_FOUND) file(GLOB DDParsers_SPIRIT_SOURCES src/Spirit/*.cpp)
file(GLOB DDParsers_SPIRIT_SOURCES src/Spirit/*.cpp)
set(BOOST_LIB Boost::boost)
endif()
add_library(DDParsers SHARED ${DDParsers_SOURCES} ${DDParsers_SPIRIT_SOURCES}) add_library(DDParsers SHARED ${DDParsers_SOURCES} ${DDParsers_SPIRIT_SOURCES})
target_compile_definitions(DDParsers INTERFACE target_compile_definitions(DDParsers INTERFACE BOOST_SPIRIT_USE_PHOENIX_V3)
$<$<BOOL:Boost_FOUND>:BOOST_SPIRIT_USE_PHOENIX_V3>
)
target_include_directories(DDParsers target_include_directories(DDParsers
PUBLIC PUBLIC
...@@ -28,11 +25,7 @@ target_include_directories(DDParsers ...@@ -28,11 +25,7 @@ target_include_directories(DDParsers
$<INSTALL_INTERFACE:include> $<INSTALL_INTERFACE:include>
) )
target_link_libraries(DDParsers PUBLIC target_link_libraries(DDParsers PUBLIC ROOT::Core Boost::boost ${XML_LIBRARIES})
ROOT::Core
${BOOST_LIB}
${XML_LIBRARIES}
)
set_target_properties(DDParsers PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION}) set_target_properties(DDParsers PROPERTIES VERSION ${DD4hep_VERSION} SOVERSION ${DD4hep_SOVERSION})
install(TARGETS DDParsers EXPORT DD4hep LIBRARY DESTINATION lib) install(TARGETS DDParsers EXPORT DD4hep LIBRARY DESTINATION lib)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment