MantisBT - CMake
View Issue Details
0010509CMakeCMakepublic2010-04-04 10:192016-06-10 14:31
Dmytro Skrypnyk 
Bill Hoffman 
normalminoralways
closedmoved 
CMake-2-8 
 
0010509: CMAKE_CL_64 is only set if C is enabled, for only CXX projects the variable does not get set
I discovered that CMake 2.8.1 doesn't set CMAKE_CL_64 variable for 64-bit compiler, but CMake 2.8.0 sets it as expected.
No tags attached.
Issue History
2010-04-04 10:19Dmytro SkrypnykNew Issue
2010-04-05 11:38Bill HoffmanNote Added: 0020074
2010-04-05 11:38Bill HoffmanStatusnew => assigned
2010-04-05 11:38Bill HoffmanAssigned To => Bill Hoffman
2010-04-05 11:43Dmytro SkrypnykNote Added: 0020075
2010-04-05 13:53Bill HoffmanNote Added: 0020076
2010-04-06 06:36Dmytro SkrypnykNote Added: 0020077
2010-04-06 08:56Bill HoffmanSummaryversion 2.8.1 and CMAKE_CL_64 => CMAKE_CL_64 is only set if C is enabled, for only CXX projects the variable does not get set
2016-06-10 14:27Kitware RobotNote Added: 0041678
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0020074)
Bill Hoffman   
2010-04-05 11:38   
What generator are you using?
(0020075)
Dmytro Skrypnyk   
2010-04-05 11:43   
cmake -G "NMake Makefiles"
(0020076)
Bill Hoffman   
2010-04-05 13:53   
Can you create a small project:

project(foo)
add_library(bar bar.c)

Then run CMake on it with that generator, and tar up the build tree, and attach the tar gz, or zip to this bug?
(0020077)
Dmytro Skrypnyk   
2010-04-06 06:36   
project(foo CXX)
add_library(bar bar.cpp)
if(CMAKE_CL_64)
  message("64-bit microsoft compiler found")
else(CMAKE_CL_64)
  message("64-bit microsoft compiler NOT found")
endif(CMAKE_CL_64)

If I remove "CXX" in project command then all ok.
(0041678)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.