> I am building a Windows DLL that has some of its global variables
> allocated in a special shared memory segment.
>
> In order to inform the linker (VS Express 2008) about the segment's
> properties, I need to provide the following command-line parameter to the
> linker:
>
> /SECTION:.shared,RWS
>
>
> Could anyone advise me of the recommended way to tell cmake to configure
> VS Express 2008 to use this command-line parameter?
>
>
> Currently, in my cmake file, I have a line like:
>
> set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}
> /SECTION:.shared,RWS")
>
> but it appears to have no effect on the linker configuration in VS
> Express 2008.
Try SET_TARGET_PROPERTES(mydll PROPERTIES LINK_FLAGS /SECTION...)
Eike
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake