<div dir="ltr">I use the generator "Visual Studio 9 2008 Win64" to set up a driver project. <div>For linking I need to set the linker flag /Driver which is incompatible with the flags</div><div><em style="margin:0px;padding:0px;border:0px;color:rgb(17,17,17);font-family:'Segoe UI',Arial,sans-serif;font-size:14px">/DYNAMICBASE, </em><em style="margin:0px;padding:0px;border:0px;color:rgb(17,17,17);font-family:'Segoe UI',Arial,sans-serif;font-size:14px">/DYNAMICBASE:NO /</em><em style="margin:0px;padding:0px;border:0px;color:rgb(17,17,17);font-family:'Segoe UI',Arial,sans-serif;font-size:14px">NXCOMPAT:NO and </em><em style="margin:0px;padding:0px;border:0px;color:rgb(17,17,17);font-family:'Segoe UI',Arial,sans-serif;font-size:14px">/NXCOMPAT. </em></div>

<div>In the cmake generator vcproj file a combination of these flags are set</div><div>and cannot be unset.</div><div>To get it to link you have to manually set </div><div>Linker->Advanced->Randomized Base Address to Default and</div>

<div>Linker->Advanced->Data Execution Prevention to Default.<br></div><div>Or you have to edit the vcproj file and set</div><div><div>RandomizedBaseAddress="0"</div><div>DataExecutionPrevention="0"</div>

</div><div><br></div><div>Is there a way to achive this with the cmake system?</div></div>