[CMake] CMake Visual Studio 64bit flag?

John Drescher drescherjm at gmail.com
Fri Oct 8 12:51:56 EDT 2010


On Fri, Oct 8, 2010 at 12:50 PM,  <aaron.meadows at thomsonreuters.com> wrote:
> Seems to work correctly from my tests:
>
>
>
> CMakeLists.txt:
>
> cmake_minimum_required (VERSION 2.8)
>
>
>
> project(test CXX)
>
> message( STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}")
>
> message( STATUS "CMAKE_CL_64: ${CMAKE_CL_64}")
>
>
>
>
>
>
>
> c:\dev2\Builds\test\x64>cmake -G "Visual Studio 8 2005" ../.
>
> -- Check for working CXX compiler using: Visual Studio 8 2005
>
> -- Check for working CXX compiler using: Visual Studio 8 2005 -- works
>
> -- Detecting CXX compiler ABI info
>
> -- Detecting CXX compiler ABI info - done
>
> -- CMAKE_GENERATOR: Visual Studio 8 2005
>
> -- CMAKE_CL_64: 0
>
> -- Configuring done
>
> -- Generating done
>
> -- Build files have been written to: C:/dev2/Builds/test/x64
>
>
>
>
>
> c:\dev2\Builds\test\x86>cmake -G "Visual Studio 8 2005 Win64" ../.
>
> -- Check for working CXX compiler using: Visual Studio 8 2005 Win64
>
> -- Check for working CXX compiler using: Visual Studio 8 2005 Win64 -- works
>
> -- Detecting CXX compiler ABI info
>
> -- Detecting CXX compiler ABI info - done
>
> -- CMAKE_GENERATOR: Visual Studio 8 2005 Win64
>
> -- CMAKE_CL_64: 1
>
> -- Configuring done
>
> -- Generating done
>
> -- Build files have been written to: C:/dev2/Builds/test/x86
>
>

I believe you got your folder names backwards.
John


More information about the CMake mailing list