From: Alexandru Gagniuc Date: Tue, 5 Feb 2013 16:33:05 +0000 (-0600) Subject: buildsystem: Abort cmake config if Boost is not found X-Git-Tag: pulseview-0.1.0~132 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=080af0bd76c85fb32cc3b5492c1ee48d8ea78d3f;p=pulseview.git 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 --- 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() #===============================================================================