我正在尝试在Mac OSX上使用cmake。我安装了二进制版本和源代码版本,但是当我尝试创建Makefile时,仍然会收到以下错误:
cpc1-dumb4-2-0-cust166:build bcrowhurst$ cmake . CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
缺少的变量是:
CMAKE_On_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
缺少的变量是:
CMAKE_On_COMPILER
CMake Error: Could not find cmake module file:/Users/bcrowhurst/NetBeansProjects/appon/build/CMakeFiles/CMakeOnCompiler.cmake
CMake Error: Could not find cmake module file:CMakeOnInformation.cmake
CMake Error: CMAKE_On_COMPILER not set, after EnableLanguage
-- Boost version: 1.43.0
-- Found the following Boost libraries:
-- system
-- Configuring incomplete, errors occurred!
我的CMakeLists.txt如下所示:
cmake_minimum_required( VERSION 2.6 )
project( Application On )
find_package( Boost COMPONENTS system REQUIRED )
link_directories( ${Boost_LIBRARY_DIRS} )
if(Boost_FOUND)
include_directories( ${Boost_INCLUDE_DIRS} )
add_library( object ../source/object.cpp ../source/object.h )
target_link_libraries( object ${Boost_SYSTEM_LIBRARY} )
endif()
任何帮助都将不胜感激。
谢谢。
project(FFT Test Suite)
,或者至少我是这么认为的。在最终找到答案之前,我重新安装了CMake和其他东西... - Pär Nils Amsen