summaryrefslogtreecommitdiffstats
path: root/Modules/Platform
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-08-12 13:09:41 (GMT)
committerBrad King <brad.king@kitware.com>2009-08-12 13:09:41 (GMT)
commit45313dc94378b5bccb45a84900df383cef329273 (patch)
tree98200eb478937e971a93d3061aa281aecb162965 /Modules/Platform
parentdd2cf7388bc3ee1bd2b424fd944fc82e4c16dae5 (diff)
downloadCMake-45313dc94378b5bccb45a84900df383cef329273.zip
CMake-45313dc94378b5bccb45a84900df383cef329273.tar.gz
CMake-45313dc94378b5bccb45a84900df383cef329273.tar.bz2
Quote the target name for Borland tlib tool
The Borland librarian tool "tlib" requires that the output target name be quoted if it contains the character '-' (and perhaps a few others). This commit restores the use of the TARGET_QUOTED rule variable replacement for this purpose. Otherwise no static library can have a '-' in its name. This problem was exposed by the 'Testing' test when it builds the pcStatic library with the '-dbg' suffix.
Diffstat (limited to 'Modules/Platform')
-rw-r--r--Modules/Platform/Windows-bcc32.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Windows-bcc32.cmake b/Modules/Platform/Windows-bcc32.cmake
index 4d01cc1..a2035c2 100644
--- a/Modules/Platform/Windows-bcc32.cmake
+++ b/Modules/Platform/Windows-bcc32.cmake
@@ -57,7 +57,7 @@ SET(CMAKE_C_CREATE_SHARED_LIBRARY
${CMAKE_C_CREATE_IMPORT_LIBRARY})
# create a C++ static library
-SET(CMAKE_CXX_CREATE_STATIC_LIBRARY "tlib ${CMAKE_START_TEMP_FILE}/p512 <LINK_FLAGS> /a <TARGET> <OBJECTS>${CMAKE_END_TEMP_FILE}")
+SET(CMAKE_CXX_CREATE_STATIC_LIBRARY "tlib ${CMAKE_START_TEMP_FILE}/p512 <LINK_FLAGS> /a <TARGET_QUOTED> <OBJECTS>${CMAKE_END_TEMP_FILE}")
# create a C static library
SET(CMAKE_C_CREATE_STATIC_LIBRARY ${CMAKE_CXX_CREATE_STATIC_LIBRARY})