]> sigrok.org Git - pulseview.git/commitdiff
buildsystem: Abort cmake config if Boost is not found
authorAlexandru Gagniuc <redacted>
Tue, 5 Feb 2013 16:33:05 +0000 (10:33 -0600)
committerUwe Hermann <redacted>
Wed, 6 Feb 2013 22:21:08 +0000 (23:21 +0100)
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 <redacted>
CMakeLists.txt

index c1d0eed089a3fac378e4da4eb57924bf40f15cc8..f983ebda2e12468a953d28b4f985a167b32a6194 100644 (file)
@@ -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()
 
 #===============================================================================