From 080af0bd76c85fb32cc3b5492c1ee48d8ea78d3f Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Tue, 5 Feb 2013 10:33:05 -0600 Subject: [PATCH 1/1] buildsystem: Abort cmake config if Boost is not found When cmake didn't find Boost, it would not abort; instead the linking process after the build would fail with non-obvious error messages. Thus, make Boost a required dependency (fixes bug 59). Signed-off-by: Alexandru Gagniuc --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c1d0eed0..f983ebda 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,9 +60,9 @@ find_package(Threads) if(WIN32) # On Windows/MinGW the we need to use 'thread_win32' instead of 'thread'. # The library is named libboost_thread_win32* (not libboost_thread*). -find_package(Boost 1.42 COMPONENTS system thread_win32) +find_package(Boost 1.42 COMPONENTS system thread_win32 REQUIRED) else() -find_package(Boost 1.42 COMPONENTS system thread) +find_package(Boost 1.42 COMPONENTS system thread REQUIRED) endif() #=============================================================================== -- 2.30.2