View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015950CMakeCMakepublic2016-02-02 07:532016-06-10 14:31
ReporterLars Wiese 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
Platformx64OSWindowsOS Version7
Product VersionCMake 3.4.3 
Target VersionFixed in Version 
Summary0015950: CMAKE_SIZEOF_VOID_P is undefined on Windows 7 x64 VM (Vmware 10)
DescriptionCMAKE_SIZEOF_VOID_P is undefined on Windows 7 x64 VM (Vmware 10)
I am using CMAKE_SIZEOF_VOID_P for switching parameters for x86 or x64.
For my understanding the value is related to generator the ARCH.

I tried the generator for VS 2010 and VS2013 together with/without "<ARCH> Win64"
Steps To Reproduceif( CMAKE_SIZEOF_VOID_P EQUAL 8 )
  set (ARCH "x64")
  add_definitions("-DX86_64")
  message ("Build type: Windows x64")
else ()
  set (ARCH "x86")
  message ("Build type: Windows x86")
endif()
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0040427)
Brad King (manager)
2016-02-02 08:29

This is supposed to be set here:

 https://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeCCompiler.cmake.in;hb=v3.4.3#l44 [^]

by the code

 if(CMAKE_C_SIZEOF_DATA_PTR)
   set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
 endif()

The CMAKE_<LANG>_SIZEOF_DATA_PTR values are detected by code here:

 https://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeCompilerABI.h;hb=v3.4.3 [^]
 https://cmake.org/gitweb?p=cmake.git;a=blob;f=Modules/CMakeDetermineCompilerABI.cmake;hb=v3.4.3#l36 [^]

That should give you a starting point to trace it locally.
(0040428)
Ruslan Baratov (reporter)
2016-02-02 20:14

Also there are variables MSVC_CXX_ARCHITECTURE_ID/MSVC_C_ARCHITECTURE_ID with values X86, x64, ARMV7.
(0042931)
Kitware Robot (administrator)
2016-06-10 14:29

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.

 Issue History
Date Modified Username Field Change
2016-02-02 07:53 Lars Wiese New Issue
2016-02-02 08:29 Brad King Note Added: 0040427
2016-02-02 20:14 Ruslan Baratov Note Added: 0040428
2016-06-10 14:29 Kitware Robot Note Added: 0042931
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team