在为CRAVE软件制作make时,未发现错误

时间:2014-04-03 08:12:50

标签: boost cmake

在CMakelist.txt中显示,

PROJECT(metaSMT)
      2 
      3 cmake_minimum_required(VERSION 2.8.2)
      4 include(CheckIncludeFileCXX)
      5 if(CMAKE_VERSION VERSION_LESS 2.8.3)
      6   include(cmake/feature_summary_stub.cmake)
      7 else()
      8   include(FeatureSummary)
      9 endif()
     10 
     11 include(CTest)
     12 
     13 set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules )
     14 
     15 set(Boost_NO_BOOST_CMAKE true)
     16 set(Boost_NO_SYSTEM_PATHS true)
     17 set(Boost_ADDITIONAL_VERSIONS "1.50.0")
     18 find_package(Boost COMPONENTS iostreams thread python)
     19 
     20 if(NOT ${Boost_FOUND})
     21   message(FATAL_ERROR "Boost could not be found.")
     22 endif()
     23 

所以确实如此,我收到了错误,

./bootstrap.sh -d /home/tandv0011/crave-bundle/deps -m RELEASE /home/tan        dv0011/crave-bundle/build
      2 skipping boost-1_50_0
      3 skipping SWORD-1.1
      4 skipping cudd-2.4.2
      5 -- Could NOT find Boost
      6 CMake Error at metaSMT/CMakeLists.txt:21 (message):
      7   Boost could not be found.

请指导我解决此问题

0 个答案:

没有答案