[CMake] Cygwin ccmake 2.4.2 CMAKE_BUILD_TYPE empty
Brandon J. Van Every
bvanevery at gmail.com
Tue Aug 1 02:22:00 EDT 2006
As noted, postfixing doesn't appear to work at all on Cygwin. Is there
any way to get both cygchicken-0.dll and libchicken.dll.a ?
Cheers,
Brandon Van Every
William A. Hoffman wrote:
> The CMAKE_BUILD_TYPE is by default empty on all UNIX/posix platforms.
> Sort of goes back to when there was no build type for unix. I suppose
> the chicken project could force it to not be empty. if empty, then do
> a cache force to what you want.
>
> -Bill
>
>
> At 06:51 PM 7/31/2006, Brandon J. Van Every wrote:
>
>> I'm building with ccmake 2.4.2 on Cygwin. When I do:
>>
>> IF(CYGWIN)
>> MESSAGE("Build type is ${CMAKE_BUILD_TYPE}")
>> SET_TARGET_PROPERTIES(libchicken PROPERTIES DEBUG_POSTFIX "-0")
>> SET_TARGET_PROPERTIES(libchicken PROPERTIES RELEASE_POSTFIX "-0")
>> SET_TARGET_PROPERTIES(libchicken PROPERTIES MINSIZEREL_POSTFIX "-0")
>> SET_TARGET_PROPERTIES(libchicken PROPERTIES RELWITHDEBINFO_POSTFIX "-0")
>> ENDIF(CYGWIN)
>>
>> I get "Build type is ". Also the postfixes are ignored.
>>
>> Motive: Cygwin has this progressive-or-awkward nomenclature for its dlls, depending on your perspective. Instead of libwhatever.dll, they do cygwhatever-xxx.dll, where xxx is a version number. A typical default is cygwhatever-0.dll. I am trying to imitate a ./configure build that generates such a name. Without such imitation the resulting app doesn't work. Whether the app can rename things to cygwhatever.dll is unresolved. In any event, Cygwin standard practice (I refrain from calling it a "best" practice) is to put these -xxx postfixes on stuff.
>> And they don't do it on their import stubs, they ship things like:
>>
>> cygwhatever-123.dll
>> libwhatever.dll.a
>>
>>
>> So what I need is a postfix that only affects the .dll output.
>>
>>
>> Cheers,
>> Brandon Van Every
>>
>> _______________________________________________
>> CMake mailing list
>> CMake at cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
>>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060731/27d6af12/attachment.htm
More information about the CMake
mailing list