summaryrefslogtreecommitdiffstats
path: root/Modules/KDE3Macros.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-01-13 18:54:34 (GMT)
committerBrad King <brad.king@kitware.com>2010-01-13 18:54:34 (GMT)
commit3cba2b3a0f67b138266ae4799a06221410462e8a (patch)
tree4d7db78548dc15b408db81b6a865bac5d8bf6dbf /Modules/KDE3Macros.cmake
parent8779559dd50dbf8f90a153c8e01b8f43635ae5a0 (diff)
downloadCMake-3cba2b3a0f67b138266ae4799a06221410462e8a.zip
CMake-3cba2b3a0f67b138266ae4799a06221410462e8a.tar.gz
CMake-3cba2b3a0f67b138266ae4799a06221410462e8a.tar.bz2
Fix KDE3 .la file format on Cygwin
We teach KDE3Macros.cmake to generate .la files on Cygwin that match those produced by libtool. See issue #10122.
Diffstat (limited to 'Modules/KDE3Macros.cmake')
-rw-r--r--Modules/KDE3Macros.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/KDE3Macros.cmake b/Modules/KDE3Macros.cmake
index f358cd7..0f2d479 100644
--- a/Modules/KDE3Macros.cmake
+++ b/Modules/KDE3Macros.cmake
@@ -322,7 +322,11 @@ MACRO(KDE3_INSTALL_LIBTOOL_FILE _target)
FILE(APPEND ${_laname} "# The name that we can dlopen(3).\n")
FILE(APPEND ${_laname} "dlname='${_soname}'\n")
FILE(APPEND ${_laname} "# Names of this library\n")
- FILE(APPEND ${_laname} "library_names='${_soname} ${_soname} ${_soname}'\n")
+ IF(CYGWIN)
+ FILE(APPEND ${_laname} "library_names='${_soname}'\n")
+ ELSE(CYGWIN)
+ FILE(APPEND ${_laname} "library_names='${_soname} ${_soname} ${_soname}'\n")
+ ENDIF(CYGWIN)
FILE(APPEND ${_laname} "# The name of the static archive\n")
FILE(APPEND ${_laname} "old_library=''\n")
FILE(APPEND ${_laname} "# Libraries that this one depends upon.\n")