Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
iwr
amdis
Commits
6687ae9f
Commit
6687ae9f
authored
Sep 19, 2017
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update target_enable_boost.cmake
parent
ebc999c1
Pipeline
#858
passed with stages
in 45 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
AMDiS/cmake3/target_enable_boost.cmake
AMDiS/cmake3/target_enable_boost.cmake
+2
-5
No files found.
AMDiS/cmake3/target_enable_boost.cmake
View file @
6687ae9f
...
...
@@ -26,15 +26,12 @@ macro(target_enable_boost _TARGET_ _SCOPE_)
endif
(
NOT BUILD_SHARED_LIBS
)
find_package
(
Boost
${
BOOST_VERSION
}
REQUIRED
${
BOOST_LIBS_REQUIRED
}
)
add_library
(
boost INTERFACE
)
target_include_directories
(
boost INTERFACE
${
Boost_INCLUDE_DIR
}
)
target_include_directories
(
${
_TARGET_
}
${
_SCOPE_
}
${
Boost_INCLUDE_DIR
}
)
if
(
LINK_EXECUTABLE
)
target_link_libraries
(
boost INTERFACE
${
Boost_LIBRARIES
}
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
${
Boost_LIBRARIES
}
)
endif
(
LINK_EXECUTABLE
)
target_link_libraries
(
${
_TARGET_
}
${
_SCOPE_
}
boost
)
if
(
MSVC_SHARED_LIBS AND LINK_EXECUTABLE
)
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
target_compile_definitions
(
${
_TARGET_
}
${
_SCOPE_
}
${
Boost_LIB_DIAGNOSTIC_DEFINITIONS
}
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment