To support watcom appropriatly, I think some additional default concepts need to be added to CMAKE, however, I have recently gotten cmake and converted a few of my projects to it. Success in instantly making in visual studio 2010, mingw, watcom(mostly). Should check a few linux box's opinion, but, cmake 2.8 is pretty good, even have my stuff resembling installable.
But, I'm having some issues with the 'Watcom WMake' support. debug doesn't seem to work, that is, no debug information is set in the output, so using the debugger is out of the question. Windows-wcl386.cmake contains no reference to 'debug all' on any wlink command. This would be needed to get debug information itno the library, and I'm not sure the -d2 is set right on debug configurations... Is there really only a set of CMAKE_C_FLAGS_ and _CXX_FLAGS_? no companion _LD_FLAGS_ ? probably something like... ${CMAKE_LD_FLAGS_${CMAKE_BUILD_TYPE}} would reference a set of configuration type ld flags? +SET (CMAKE_LD_FLAGS_DEBUG_INIT "debug all") +SET (CMAKE_LD_FLAGS_MINSIZEREL_INIT "") +SET (CMAKE_LD_FLAGS_RELEASE_INIT "") +SET (CMAKE_LD_FLAGS_RELWITHDEBINFO_INIT "debug all") +/- "wlink ${CMAKE_LD_FLAGS_${CMAKE_BUILD_TYPE}} ${CMAKE_START_TEMP_FILE} ${CMAKE_WLINK_QUIET} name <TARGET> option caseexact file {<OBJECTS>} <LINK_LIBRARIES> ${CMAKE_END_TEMP_FILE}") ---------------------------------------------------------------------------- Otherwise, code compiled for a library and code compiled for a program require different flags... so to have a set of CMAKE_C_FLAGS_ by target type ( LIBRARY, PROGRAM(EXECUTABLE) ) would be useful to define in the Windows-wcl386.cmake might be good.... -bd needs to be applied to sources compiled for a library, otherwise symbols that are unreferenced are deleted when linked. ----------------------------------------------------------------------------- _______________________________________________ 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