[CMake] Why does Project(name NONE) requires CMAKE_MAKE_PROGRAM?

Gregoire Aujay gaujay at movea.com
Fri Apr 19 04:05:19 EDT 2013


Hello,

It seems that the Projetct(name NONE) macro requires the CMAKE_MAKE_PROGRAM to be defined.

This CMakelists will trigger a CMAKE_MAKE_PROGRAM not found, when trying to cross-compile with code sourcery toolchain which is using a non-trivial make program name:

cmake_minimum_required(VERSION 2.8)

Project(Foo NONE)

# Init my stuff
set(CMAKE_MAKE_PROGRAM cs-make.exe CACHE STRING "make program" FORCE)
enable_language( C )

# declare targets
add_library(foo STATIC bar.c)


Thanks,
Gregoire

I am using cmake 2.8.10 on win7 64

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130419/d6fc630e/attachment-0001.htm>


More information about the CMake mailing list