diff options
Diffstat (limited to 'volk/CMakeLists.txt')
-rw-r--r-- | volk/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/volk/CMakeLists.txt b/volk/CMakeLists.txt index 68385f974..9519505eb 100644 --- a/volk/CMakeLists.txt +++ b/volk/CMakeLists.txt @@ -38,12 +38,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) #location for custom "M # Environment setup ######################################################################## IF(NOT DEFINED BOOST_ROOT) - SET(BOOST_ROOT "") + SET(BOOST_ROOT ${CMAKE_INSTALL_PREFIX}) ENDIF() -SET(BOOST_ROOT ${BOOST_ROOT} CACHE STRING "Modify search path for Boost components") - -#after caching user-defined value, make sure to add the install prefix -SET(BOOST_ROOT ${BOOST_ROOT}:${CMAKE_INSTALL_PREFIX}) IF(NOT DEFINED CROSSCOMPILE_MULTILIB) SET(CROSSCOMPILE_MULTILIB "") @@ -77,6 +73,10 @@ set(Boost_ADDITIONAL_VERSIONS ) find_package(Boost COMPONENTS unit_test_framework) +if(NOT Boost_FOUND) + message(FATAL_ERROR "VOLK Requires boost to build") +endif() + find_package(ORC) ######################################################################## |