Do not pass -DCMAKE_SYSTEM=Windows-5.1 on the command line. CMake expects to compute that value itself...<br><br><br><div><span class="gmail_quote">On 10/19/07, <b class="gmail_sendername">Gonzalo Garramuņo</b> &lt;<a href="mailto:ggarra@advancedsl.com.ar">
ggarra@advancedsl.com.ar</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>MinGW CMake also says it supports NMake Makefiles (actually, tons of
<br>formats which sounds super cool).&nbsp;&nbsp;After compiling a MinGW CMake, I<br>tried using it to compile cmake again with &quot;NMake Makefiles&quot; and it also<br>worked.<br><br>But trying a &#39;NMake Makefiles&#39; build on my project resulted in
<br><br> &gt; cmake ../../../.. -DCMAKE_SYSTEM=Windows-5.1<br>-DEXECUTABLE_OUTPUT_PATH=/z/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/bin<br>-DLIBRARY_OUTPUT_PATH=/z/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/lib
<br>-DCMAKE_LIBRARY_PATH=/z/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/lib<br>-DCMAKE_NATIVE_ARCH=32 -DCMAKE_BUILD_ARCH=32 -DCMAKE_BUILD_TYPE=Release<br>-G &#39;NMake Makefiles&#39;<br><br><br><br>-- The C compiler identification is MSVC
<br><br>-- The CXX compiler identification is MSVC<br><br>System is unknown to cmake, create:<br><br>Platform/ to use this system, please send your config file to<br><a href="mailto:cmake@www.cmake.org">cmake@www.cmake.org
</a> so it can be added to cmake<br><br>-- Check for working C compiler: C:/Archivos de programa/Microsoft<br>Visual Studio .NET 2003/Vc7/bin/cl.exe<br><br>CMake Error: This should not have happen. If you see this message, you
<br>are probably using a broken CMakeLists.txt file or a problematic release<br>of CMake<br><br>CMake Error: Could not find cmake module<br>file:Z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/tmp/CMakeFiles/CMakeRCCompiler.cmake
<br><br>CMake Error: Internal CMake error, TryCompile configure of cmake failed<br><br>-- Check for working C compiler: C:/Archivos de programa/Microsoft<br>Visual Studio .NET 2003/Vc7/bin/cl.exe -- broken<br><br>CMake Error: The C compiler &quot;C:/Archivos de programa/Microsoft Visual
<br>Studio .NET 2003/Vc7/bin/cl.exe&quot; is not able to compile a simple test<br>program.<br><br>It fails with the following output:<br><br><br><br><br>CMake will not be able to correctly generate this project.<br><br>-- Configuring done
<br><br><br>The generated CMakeCache.txt is attached.<br><br><br>--<br>Gonzalo Garramuņo<br><a href="mailto:ggarra@advancedsl.com.ar">ggarra@advancedsl.com.ar</a><br><br>AMD4400 - ASUS48N-E<br>GeForce7300GT<br>Kubuntu Edgy
<br><br># This is the CMakeCache file.<br># For build in directory: z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/tmp<br># It was generated by CMake: C:/Archivos de programa/CMake/bin/cmake.exe<br># You can edit this file to change values found and used by cmake.
<br># If you do not want to change any of the values, simply exit the editor.<br># If you do want to change a value, simply edit, save, and exit the editor.<br># The syntax for the file is as follows:<br># KEY:TYPE=VALUE<br>
# KEY is the name of a variable in the cache.<br># TYPE is a hint to GUI&#39;s for the type of VALUE, DO NOT EDIT TYPE!.<br># VALUE is the current value for the KEY.<br><br>########################<br># EXTERNAL cache entries
<br>########################<br><br>//For backwards compatibility, what version of CMake commands and<br>// syntax should this version of CMake allow.<br>CMAKE_BACKWARDS_COMPATIBILITY:STRING=2.5<br><br>//No help, variable specified on the command line.
<br>CMAKE_BUILD_ARCH:UNINITIALIZED=32<br><br>//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or<br>// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.<br>CMAKE_BUILD_TYPE:STRING=Release<br><br>//Enable/Disable color output during build.
<br>CMAKE_COLOR_MAKEFILE:BOOL=ON<br><br>//CXX compiler.<br>CMAKE_CXX_COMPILER:FILEPATH=C:/Archivos de programa/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe<br><br>//C compiler.<br>CMAKE_C_COMPILER:FILEPATH=C:/Archivos de programa/Microsoft Visual Studio .NET 2003/Vc7/bin/cl.exe
<br><br>//Flags for C compiler.<br>CMAKE_C_FLAGS:STRING=&#39; &#39;<br><br>//Flags used by the compiler during debug builds.<br>CMAKE_C_FLAGS_DEBUG:STRING=<br><br>//Flags used by the compiler during release minsize builds.
<br>CMAKE_C_FLAGS_MINSIZEREL:STRING=<br><br>//Flags used by the compiler during release builds (/MD /Ob1 /Oi<br>// /Ot /Oy /Gs will produce slightly less optimized but smaller<br>// files).<br>CMAKE_C_FLAGS_RELEASE:STRING=
<br><br>//Flags used by the compiler during Release with Debug Info builds.<br>CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=<br><br>//Flags used by the linker.<br>CMAKE_EXE_LINKER_FLAGS:STRING=<br><br>//Flags used by the linker during debug builds.
<br>CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=<br><br>//Flags used by the linker during release minsize builds.<br>CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=<br><br>//Flags used by the linker during release builds.<br>CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
<br><br>//Flags used by the linker during Release with Debug Info builds.<br>CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=<br><br>//Install path prefix, prepended onto install directories.<br>CMAKE_INSTALL_PREFIX:PATH=C:/Archivos de programa/mrLiquid
<br><br>//No help, variable specified on the command line.<br>CMAKE_LIBRARY_PATH:UNINITIALIZED=z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/lib<br><br>//Path to a program.<br>CMAKE_LINKER:FILEPATH=C:/Archivos de programa/Microsoft Visual Studio .NET 2003/Vc7/bin/link.exe
<br><br>//Program used to build from makefiles.<br>CMAKE_MAKE_PROGRAM:STRING=nmake<br><br>//Flags used by the linker during the creation of modules.<br>CMAKE_MODULE_LINKER_FLAGS:STRING=<br><br>//Flags used by the linker during debug builds.
<br>CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=<br><br>//Flags used by the linker during release minsize builds.<br>CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=<br><br>//Flags used by the linker during release builds.<br>CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
<br><br>//Flags used by the linker during Release with Debug Info builds.<br>CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=<br><br>//No help, variable specified on the command line.<br>CMAKE_NATIVE_ARCH:UNINITIALIZED=32
<br><br>//Flags used by the linker during the creation of dll&#39;s.<br>CMAKE_SHARED_LINKER_FLAGS:STRING=<br><br>//Flags used by the linker during debug builds.<br>CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=<br><br>//Flags used by the linker during release minsize builds.
<br>CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=<br><br>//Flags used by the linker during release builds.<br>CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=<br><br>//Flags used by the linker during Release with Debug Info builds.
<br>CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=<br><br>//If set, runtime paths are not added when using shared libraries.<br>CMAKE_SKIP_RPATH:BOOL=NO<br><br>//No help, variable specified on the command line.<br>CMAKE_SYSTEM:UNINITIALIZED=
Windows-5.1<br><br>//If true, cmake will use relative paths in makefiles and projects.<br>CMAKE_USE_RELATIVE_PATHS:BOOL=OFF<br><br>//If this value is on, makefiles will be generated without the<br>// .SILENT directive, and all commands will be echoed to the console
<br>// during the make.&nbsp;&nbsp;This is useful for debugging only. With Visual<br>// Studio IDE projects all commands are done without /nologo.<br>CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE<br><br>//No help, variable specified on the command line.
<br>EXECUTABLE_OUTPUT_PATH:UNINITIALIZED=z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/bin<br><br>//No help, variable specified on the command line.<br>LIBRARY_OUTPUT_PATH:UNINITIALIZED=z:/code/Maya/mrLiquid/BUILD/Windows-
5.1-32/Release/lib<br><br>//Value Computed by CMake<br>mrLiquid_BINARY_DIR:STATIC=Z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/tmp<br><br>//Value Computed by CMake<br>mrLiquid_SOURCE_DIR:STATIC=Z:/code/Maya/mrLiquid
<br><br><br>########################<br># INTERNAL cache entries<br>########################<br><br>//Advanced flag for variable: CMAKE_BUILD_TOOL<br>CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1<br>//What is the target build tool cmake is generating for.
<br>CMAKE_BUILD_TOOL:INTERNAL=nmake<br>//This is the directory where this CMakeCahe.txt was created<br>CMAKE_CACHEFILE_DIR:INTERNAL=z:/code/Maya/mrLiquid/BUILD/Windows-5.1-32/Release/tmp<br>//Major version of cmake used to create the current loaded cache
<br>CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2<br>//Minor version of cmake used to create the current loaded cache<br>CMAKE_CACHE_MINOR_VERSION:INTERNAL=5<br>//Major version of cmake used to create the current loaded cache<br>CMAKE_CACHE_RELEASE_VERSION:INTERNAL=20071011
<br>//Advanced flag for variable: CMAKE_COLOR_MAKEFILE<br>CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1<br>//Path to CMake executable.<br>CMAKE_COMMAND:INTERNAL=C:/Archivos de programa/CMake/bin/cmake.exe<br>//Path to cpack program executable.
<br>CMAKE_CPACK_COMMAND:INTERNAL=C:/Archivos de programa/CMake/bin/cpack.exe<br>//Path to ctest program executable.<br>CMAKE_CTEST_COMMAND:INTERNAL=C:/Archivos de programa/CMake/bin/ctest.exe<br>//Advanced flag for variable: CMAKE_CXX_COMPILER
<br>CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_C_COMPILER<br>CMAKE_C_COMPILER-ADVANCED:INTERNAL=1<br>//Result of TRY_COMPILE<br>CMAKE_C_COMPILER_WORKS:INTERNAL=FALSE<br>//Advanced flag for variable: CMAKE_C_FLAGS
<br>CMAKE_C_FLAGS-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_C_FLAGS_DEBUG<br>CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_C_FLAGS_MINSIZEREL<br>CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
<br>//Advanced flag for variable: CMAKE_C_FLAGS_RELEASE<br>CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_C_FLAGS_RELWITHDEBINFO<br>CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1<br>//Path to cache edit program executable.
<br>CMAKE_EDIT_COMMAND:INTERNAL=C:/Archivos de programa/CMake/bin/CMakeSetup.exe<br>//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS<br>CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
<br>CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL<br>CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
<br>CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO<br>CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1<br>//Name of generator.<br>CMAKE_GENERATOR:INTERNAL=NMake Makefiles
<br>//Start directory with the top level CMakeLists.txt file for this<br>// project<br>CMAKE_HOME_DIRECTORY:INTERNAL=Z:/code/Maya/mrLiquid<br>//Advanced flag for variable: CMAKE_LINKER<br>CMAKE_LINKER-ADVANCED:INTERNAL=1<br>
//Advanced flag for variable: CMAKE_MAKE_PROGRAM<br>CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS<br>CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
<br>CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL<br>CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
<br>CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO<br>CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1<br>//number of local generators
<br>CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1<br>//Path to CMake installation.<br>CMAKE_ROOT:INTERNAL=C:/Archivos de programa/CMake/share/cmake-2.5<br>//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS<br>CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
<br>//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG<br>CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL<br>CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
<br>//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE<br>CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO<br>CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
<br>//Advanced flag for variable: CMAKE_SKIP_RPATH<br>CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_USE_RELATIVE_PATHS<br>CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1<br>//Advanced flag for variable: CMAKE_VERBOSE_MAKEFILE
<br>CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1<br><br><br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">
http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>