[cmake-developers] [CMake 0015496]: VS 2013 Win64 generator adds machine:X86 link option
Mantis Bug Tracker
mantis at public.kitware.com
Sat Apr 4 04:53:47 EDT 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15496
======================================================================
Reported By: Tom Deseyn
Assigned To:
======================================================================
Project: CMake
Issue ID: 15496
Category: (No Category)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-04-04 04:53 EDT
Last Modified: 2015-04-04 04:53 EDT
======================================================================
Summary: VS 2013 Win64 generator adds machine:X86 link option
Description:
VS 2013 Win64 generator adds machine:X86 link option which results into a link
error: 'fatal error LNK1112: module machine type 'x64' conflicts with target
machine type 'X86''.
When I manually remove the machine from AdditionalOptions, the project compiles
fine.
I tried figuring out from the sources where the bug may originate and my guess
is that "${ARCHITECTURE_ID}" in CMakeDetermineCompilerId.cmake doesn't get set
to 'x64'.
CMakeCache.txt contains the following lines:
CMAKE_EXE_LINKER_FLAGS:STRING= /machine:X86
CMAKE_MODULE_LINKER_FLAGS:STRING= /machine:X86
CMAKE_SHARED_LINKER_FLAGS:STRING= /machine:X86
I am using cmake 3.2.1 on Windows 7 with VS 2013 Pro.
My project is generated using: cmake -G "Visual Studio 12 2013 Win64" .
Is there a way to force these flags to be empty or x64 so I can workaround this
bug?
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-04-04 04:53 Tom Deseyn New Issue
======================================================================
More information about the cmake-developers
mailing list