From 37077e3706ac9adf8f972d7219de8089cb925bd2 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Mon, 27 Oct 2014 23:39:35 +0100 Subject: [PATCH] Don't build Rez if boost is unavailable --- Rez/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rez/CMakeLists.txt b/Rez/CMakeLists.txt index 50e41253fd..0c7a08f08a 100644 --- a/Rez/CMakeLists.txt +++ b/Rez/CMakeLists.txt @@ -21,6 +21,7 @@ set(CMAKE_CXX_FLAGS "--std=c++11 -Wall") find_package(Boost COMPONENTS wave filesystem system thread regex program_options) +if(Boost_FOUND) find_package(BISON REQUIRED) @@ -66,3 +67,5 @@ target_link_libraries(Rez RezLib ResourceFiles ${Boost_LIBRARIES}) install(TARGETS Rez RUNTIME DESTINATION bin) add_subdirectory(Test) + +endif(Boost_FOUND)