diff options
author | Brad King <brad.king@kitware.com> | 2009-08-12 13:09:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-08-12 13:09:41 (GMT) |
commit | 45313dc94378b5bccb45a84900df383cef329273 (patch) | |
tree | 98200eb478937e971a93d3061aa281aecb162965 | |
parent | dd2cf7388bc3ee1bd2b424fd944fc82e4c16dae5 (diff) | |
download | CMake-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.
-rw-r--r-- | Modules/Platform/Windows-bcc32.cmake | 2 |
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}) |