]> sigrok.org Git - pulseview.git/blobdiff - CMakeLists.txt
buildsystem: Abort cmake config if Boost is not found
[pulseview.git] / 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*).
 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()
 else()
-find_package(Boost 1.42 COMPONENTS system thread)
+find_package(Boost 1.42 COMPONENTS system thread REQUIRED)
 endif()
 
 #===============================================================================
 endif()
 
 #===============================================================================