소스 검색

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.
Brad King 16 년 전
부모
커밋
3cba2b3a0f
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      Modules/KDE3Macros.cmake

+ 5 - 1
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")