diff options
author | Sergiu Deitsch <sergiu.deitsch@gmail.com> | 2018-01-14 10:42:48 (GMT) |
---|---|---|
committer | Sergiu Deitsch <sergiu.deitsch@th-nuernberg.de> | 2018-01-19 16:00:44 (GMT) |
commit | 2557cad5ec5084f86d4bb56c82939a49fc9d3071 (patch) | |
tree | d23f50924e34f79dacf9585c5dba3de14429a122 /Tests/FindBoost/CMakeLists.txt | |
parent | 7b78242d602c5ffa1831478ef624bc41642ca1ff (diff) | |
download | CMake-2557cad5ec5084f86d4bb56c82939a49fc9d3071.zip CMake-2557cad5ec5084f86d4bb56c82939a49fc9d3071.tar.gz CMake-2557cad5ec5084f86d4bb56c82939a49fc9d3071.tar.bz2 |
FindBoost: support OPTIONAL_COMPONENTS
Diffstat (limited to 'Tests/FindBoost/CMakeLists.txt')
-rw-r--r-- | Tests/FindBoost/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/FindBoost/CMakeLists.txt b/Tests/FindBoost/CMakeLists.txt index 0e9527d..17a8ec7 100644 --- a/Tests/FindBoost/CMakeLists.txt +++ b/Tests/FindBoost/CMakeLists.txt @@ -9,6 +9,20 @@ add_test(NAME FindBoost.Test COMMAND --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> ) +add_test(NAME FindBoost.TestFail COMMAND + ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> + --build-and-test + "${CMake_SOURCE_DIR}/Tests/FindBoost/TestFail" + "${CMake_BINARY_DIR}/Tests/FindBoost/TestFail" + ${build_generator_args} + --build-project TestFailFindBoost + --build-options ${build_options} + --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> + ) + +set_tests_properties(FindBoost.TestFail PROPERTIES + PASS_REGULAR_EXPRESSION "Could not find the following Boost libraries:[ \t\n]+boost_foobar") + add_test(NAME FindBoost.TestHeaders COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> --build-and-test |