CMake missing environment variables errors -
i'm attempting use cmake on mac osx i've installed both binary version , source. continue receive following errors when attempting create makefile.
cpc1-dumb4-2-0-cust166:build bcrowhurst$ cmake . cmake error: error required internal cmake variable not set, cmake may not built correctly.
missing variable is:
cmake_on_compiler_env_var
cmake error: error required internal cmake variable not set, cmake may not built correctly.
missing variable is:
cmake_on_compiler
cmake error: not find cmake module file:/users/bcrowhurst/netbeansprojects/appon/build/cmakefiles/cmakeoncompiler.cmake cmake error: not find cmake module file:cmakeoninformation.cmake cmake error: cmake_on_compiler not set, after enablelanguage -- boost version: 1.43.0 -- found following boost libraries: -- system -- configuring incomplete, errors occurred!
my cmakelists.txt follows:
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()
any appreciated.
thanks.
the 2nd , later optional args project command should known cmake language values.
it's typical values are:
- leave off, don't provide 2nd arg (default c , cxx)
- c
- cxx
- fortran
- none
you've provided "on" language value project command, cmake not know.
remove "on" , leave blank or replace languages need project.
Comments
Post a Comment