[CMake] CMAKE_MAKE_PROGRAM is not set.

Piotr Dobrogost pd at opensource.dobrogost.pl
Sat Apr 18 09:56:44 EDT 2009


Bill Hoffman wrote:

> Look in CMakeError.log and see if there is some other reason it is failing.

There's no info on CMakeError.log file in CMake 2.6 online manual
http://cmake.org/cmake/help/cmake2.6docs.html

However I don't get the original error now (have no idea why).
Instead I'm getting another error:

CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj : fatal error
LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

Do you know how I could make this work?
What's really strange is when I get this error and I delete all contents
of build folder the next invocation of cmake runs without any errors.

Below I give the whole output from cmake in case you need some more
information.

-- 
Piotr Dobrogost
*** curlpp.org - c++ wrapper for libcurl ***




d:\projects\curl-build>cmake -G "NMake Makefiles" ..\curl

-- The C compiler identification is MSVC
-- Using FREE VC TOOLS, NO DEBUG available
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio
9.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual
Studio
9.0/VC/bin/cl.exe -- broken
CMake Error at C:/Program Files (x86)/CMake
2.6/share/cmake-2.6/Modules/CMakeTes
tCCompiler.cmake:32 (MESSAGE):
  The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
  9.0/VC/bin/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: D:/projects/curl-build/CMakeFiles/CMakeTmp



  Run Build Command:nmake /NOLOGO "cmTryCompileExec\fast"

        "C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\BIN\nmake.exe" -f

  CMakeFiles\cmTryCompileExec.dir\build.make /nologo -L
  CMakeFiles\cmTryCompileExec.dir\build

        "C:\Program Files (x86)\CMake 2.6\bin\cmake.exe" -E
cmake_progress_repor
t
  D:\projects\curl-build\CMakeFiles\CMakeTmp\CMakeFiles 1

  Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj

        C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe
  @C:\Users\Piotr\AppData\Local\Temp\nmE0A7.tmp

  testCCompiler.c

  Linking C executable cmTryCompileExec.exe

        C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe /nologo
  @CMakeFiles\cmTryCompileExec.dir\objects1.rsp
  @C:\Users\Piotr\AppData\Local\Temp\nmE0F6.tmp

  CMakeFiles\cmTryCompileExec.dir\testCCompiler.c.obj : fatal error LNK1112:
  module machine type 'X86' conflicts with target machine type 'x64'

  NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : return
  code '0x2'

  Stop.

  NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
Studio
  9.0\VC\BIN\nmake.exe"' : return code '0x2'

  Stop.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:25 (project)


-- Configuring incomplete, errors occurred!





More information about the CMake mailing list