> Is there
>
> CMAKE_C_FLAGS_EXE_INIT and CMAKE_C_FLAGS_SHARED_INIT ?
>
Sorta... apparently there is CMAKE_SHARED_LIBRARY_C_FLAGS
but as far as I can tell CMAKE_EXECUTABLE_C_FLAGS doesn't exist or
isn't ever used.

Also under watcom, these options in windows-cl.cmake

SET(CMAKE_CREATE_WIN32_EXE /subsystem:windows)
SET(CMAKE_CREATE_CONSOLE_EXE /subsystem:console)

are not passed to watcom linker.

But then this leads me to say that really CMAKE_WIN32_C_FLAGS and
CMAKE_CONSOLE_C_FLAGS are useful :)




> I also just tried exporting the blow mentioned values on 2.8.1-RC4,
> with the same result.
>
> (sory to branch conversation to 3 heads)
>
> On Fri, Mar 5, 2010 at 6:15 AM, Bill Hoffman <bill.hoff...@kitware.com> wrote:
>> J Decker wrote:
>>>
>>> but then, for every project that already exists, it won't build
>>> correctly using watcom, because the options just aren't set in the
>>> generator, or 3 more flavors of generators aren't added to support
>>> static library, executlable and dynamic library with correct compile
>>> time options.
>>>
>>
>> It should go in Modules/Platform/Windows-wcl386.cmake.
>>
>> Just set these:
>> CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT
>> CMAKE_SHARED_LINKER_FLAGS_INIT
>> CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT
>>
>>
>> See Windows-cl.cmake for an example, you will also want to set
>> RELWITHDEBINFO to have the same flag.  If you can verify this works, I will
>> merge into git master for CMake.
>>
>> -Bill
>>
>
_______________________________________________
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

Reply via email to