Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
29ba2b0f
Commit
29ba2b0f
authored
5 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
DDParsers: boost is mandatory, no need for ifs
parent
b6715d39
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDParsers/CMakeLists.txt
+5
-12
5 additions, 12 deletions
DDParsers/CMakeLists.txt
with
5 additions
and
12 deletions
DDParsers/CMakeLists.txt
+
5
−
12
View file @
29ba2b0f
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment