Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
a789eba0
Commit
a789eba0
authored
Jul 07, 2016
by
Rashad Kanavath
Browse files
COMP: fix find_boost and find_boost unit_test_framework
parent
c704a9a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/ThirdParty/Boost/otb-module-init.cmake
View file @
a789eba0
# Optional components
if
(
BUILD_TESTING
)
set
(
OTB_Boost_COMPONENTS unit_test_framework
)
endif
()
find_package
(
Boost 1.35.0 REQUIRED
)
message
(
STATUS
"Looking for boost components:
${
OTB_Boost_COMPONENTS
}
"
)
find_package
(
Boost
1.35.0
COMPONENTS
${
OTB_Boost_COMPONENTS
}
REQUIRED
)
if
(
BUILD_TESTING
)
find_package
(
Boost 1.35.0 QUIET
COMPONENTS unit_test_framework
)
if
(
NOT Boost_UNIT_TEST_FRAMEWORK_FOUND
)
message
(
STATUS
"Boost unit_test_framework not found. Hence otbOGRTests will be skipped"
)
else
()
message
(
STATUS
"Found Boost components:
${
OTB_Boost_COMPONENTS
}
"
)
endif
()
endif
()
#BUILD_TESTING
Write
Preview
Supports
Markdown
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