[CMake] generated linker flag /Driver incompatible with /DYNAMICBASE, does not link

monade monade at gmail.com
Fri Mar 7 06:18:20 EST 2014


I use the generator "Visual Studio 9 2008 Win64" to set up a driver
project.
For linking I need to set the linker flag /Driver which is incompatible
with the flags
*/DYNAMICBASE, **/DYNAMICBASE:NO /**NXCOMPAT:NO and **/NXCOMPAT. *
In the cmake generator vcproj file a combination of these flags are set
and cannot be unset.
To get it to link you have to manually set
Linker->Advanced->Randomized Base Address to Default and
Linker->Advanced->Data Execution Prevention to Default.
Or you have to edit the vcproj file and set
RandomizedBaseAddress="0"
DataExecutionPrevention="0"

Is there a way to achive this with the cmake system?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140307/7cacab83/attachment.html>


More information about the CMake mailing list