Mercurial > dedupe
changeset 99:b821d6270741
If we have turned USE_BOOST on, we actually require the packages.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 13 Feb 2014 14:53:35 +0100 |
| parents | a591accb07b5 |
| children | f4ebbfa3ffae |
| files | CMakeLists.txt |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Thu Feb 13 14:52:23 2014 +0100 +++ b/CMakeLists.txt Thu Feb 13 14:53:35 2014 +0100 @@ -44,11 +44,11 @@ SET(Boost_USE_STATIC_RUNTIME OFF) IF(USE_HEADERS_FOR_BOOST_TEST) SET(Boost_USE_STATIC_LIBS OFF) - FIND_PACKAGE(Boost COMPONENTS filesystem system) + FIND_PACKAGE(Boost COMPONENTS filesystem system REQUIRED) ADD_DEFINITIONS( "-DBOOSTTEST_HEADER_INCLUDE" ) ELSE() SET(Boost_USE_STATIC_LIBS ON) - FIND_PACKAGE(Boost COMPONENTS filesystem system test_exec_monitor) + FIND_PACKAGE(Boost COMPONENTS filesystem system test_exec_monitor REQUIRED) ENDIF() IF (Boost_FOUND) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
