[cmake-developers] [CMake 0012881]: \DYNAMICBASE and \NXCOMPAT don't work on Visual Studio 8 2005 builds
Mantis Bug Tracker
mantis at public.kitware.com
Wed Jan 18 08:51:09 EST 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12881
======================================================================
Reported By: Daniel Lehtovirta
Assigned To:
======================================================================
Project: CMake
Issue ID: 12881
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2012-01-18 08:51 EST
Last Modified: 2012-01-18 08:51 EST
======================================================================
Summary: \DYNAMICBASE and \NXCOMPAT don't work on Visual
Studio 8 2005 builds
Description:
Creating vcproj file for Visual Studio 8 2005. When adding linker flags
\DYNAMICBASE and \NXCOMPAT
For instance by having this in the CMakeLists.txt file:
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NXCOMPAT
/DYNAMICBASE")
CMake is translating this to, DataExecutionPrevention="2" and
RandomizedBaseAddress="2" something that Visual Studio 8 2005 don't understand
and being ignored by the linker.
If I manually add \DYNAMICBASE and \NXCOMPAT to the AdditionalOptions parameter
it works fine.
Steps to Reproduce:
1. Add
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NXCOMPAT
/DYNAMICBASE")
to the CMakeLists.txt in your project, make the vcproj file for Visual Studio 8
2005.
2. Check the vcproj file and noticed the DataExecutionPrevention="2" and
RandomizedBaseAddress="2".
3. Build the file and see that the dll don't have these options sent to the
linker.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-01-18 08:51 Daniel LehtovirtaNew Issue
======================================================================
More information about the cmake-developers
mailing list