[CMake] project( XXX NONE): CMake was unable to find a build program corresponding to "Visual S tudio 9 2008"

Arjen Verweij arjen.verweij at tassinternational.com
Tue May 6 10:23:14 EDT 2014


Hi,

I'm reinstalling a machine that got a new OS (W2K8R2), and now cmake 2.8.4
refuses to serve me like it does on Windows 7.

$ cmake . -DUSE_LOCAL_BUILD=ON -DLOCAL_BIN_DIR="$LOCAL_BIN_DIR"
-- Building for: Visual Studio 9 2008
CMake Error: CMake was unable to find a build program corresponding to
"Visual Studio 9 2008".  CMAKE_MAKE_PROGRAM is not set.  You probably need
to select a different build tool.
-- Configuring incomplete, errors occurred!

What I fail to understand is, is why cmake insists on a compiler, when the
first line in my CMakeLists.txt reads:

PROJECT( GUITEST NONE )

cmake somehow ends up in CMakeVS9FindMake.cmake but I have no idea why, it
doesn't seem to access that file at all according to --trace on the win7
machine.

The machine (win7) where it works like on a few others shows:

Running with trace output on.
D:/Users/tester/workspace/guitest/CMakeLists.txt(1):  PROJECT(GUITEST NONE )
CMake Warning at CMakeLists.txt:1 (PROJECT):v
  compiler cl from the command line.  This environment does not contain
  INCLUDE, LIB, or LIBPATH, and these must be set for the cl compiler to
  work.

Any clues would be greatly appreciated, I don't need or want a compiler.
Just run cmake and ctest after.

Thanks, Arjen

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140506/6b4d1954/attachment-0001.html>


More information about the CMake mailing list