[cmake-developers] Revert watcom symfile option

J Decker d3ck0r at gmail.com
Sun Nov 2 16:59:27 EST 2014


Recently watcom link options were changed to generate .sym files instead of
building the debug information into targets.  The rules used to create the
.sym name for some files are kind of bad, and there is no way to set the
symbol file name of a target; so it is better to revert that change.  It's
easy to run 'wstrip *' if the symbols need to be stripped, but it's very
difficult to get the right names for the .sym files to install with
debug/rel_with_deb_info targets....
tried to add generator expressions to the flags to build a better symfile
name; but they don't get resolved correctly

this diff is based against current git sources

modifies share/modules/platform/windows-wcl386.cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20141102/febe73f2/attachment.html>
-------------- next part --------------
 Modules/Platform/Windows-wcl386.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Modules/Platform/Windows-wcl386.cmake b/Modules/Platform/Windows-wcl386.cmake
index ac410de..88f9bf7 100644
--- a/Modules/Platform/Windows-wcl386.cmake
+++ b/Modules/Platform/Windows-wcl386.cmake
@@ -18,8 +18,8 @@ set(CMAKE_CREATE_CONSOLE_EXE "system nt" )
 set(CMAKE_SHARED_LINKER_FLAGS_INIT "system nt_dll")
 set(CMAKE_MODULE_LINKER_FLAGS_INIT "system nt_dll")
 foreach(type SHARED MODULE EXE)
-  set(CMAKE_${type}_LINKER_FLAGS_DEBUG_INIT "debug all opt map, symfile")
-  set(CMAKE_${type}_LINKER_FLAGS_RELWITHDEBINFO_INIT "debug all opt map, symfile")
+  set(CMAKE_${type}_LINKER_FLAGS_DEBUG_INIT "debug all opt map")
+  set(CMAKE_${type}_LINKER_FLAGS_RELWITHDEBINFO_INIT "debug all opt map")
 endforeach()
 
 set(CMAKE_C_COMPILE_OPTIONS_DLL "-bd") # Note: This variable is a ';' separated list


More information about the cmake-developers mailing list