mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[svn-r21880] Add cygwin changes for ext libs
This commit is contained in:
parent
8055124566
commit
5d65ab5dd2
@ -57,11 +57,18 @@ MACRO (EXTERNAL_JPEG_LIBRARY compress_type libtype jpeg_pic)
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${BLDTYPE}/${CMAKE_IMPORT_LIBRARY_PREFIX}${JPEG_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
)
|
||||
ELSE (WIN32 AND NOT MINGW)
|
||||
SET_TARGET_PROPERTIES(jpeg PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}${JPEG_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
IMPORTED_SONAME "${CMAKE_SHARED_LIBRARY_PREFIX}${JPEG_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${JPEG_VERSION_STRING}"
|
||||
SOVERSION "${JPEG_VERSION_STRING}"
|
||||
)
|
||||
IF (CYGWIN)
|
||||
SET_TARGET_PROPERTIES(jpeg PROPERTIES
|
||||
IMPORTED_IMPLIB "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_IMPORT_LIBRARY_PREFIX}${JPEG_LIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX}"
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_IMPORT_LIBRARY_PREFIX}${JPEG_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
)
|
||||
ELSE (CYGWIN)
|
||||
SET_TARGET_PROPERTIES(jpeg PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}${JPEG_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
IMPORTED_SONAME "${CMAKE_SHARED_LIBRARY_PREFIX}${JPEG_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${JPEG_VERSION_STRING}"
|
||||
SOVERSION "${JPEG_VERSION_STRING}"
|
||||
)
|
||||
ENDIF (CYGWIN)
|
||||
ENDIF (WIN32 AND NOT MINGW)
|
||||
ELSE (${libtype} MATCHES "SHARED")
|
||||
IF (WIN32 AND NOT MINGW)
|
||||
@ -157,11 +164,18 @@ MACRO (EXTERNAL_SZIP_LIBRARY compress_type libtype encoding)
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${BLDTYPE}/${CMAKE_IMPORT_LIBRARY_PREFIX}${SZIP_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
)
|
||||
ELSE (WIN32 AND NOT MINGW)
|
||||
SET_TARGET_PROPERTIES(szip PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}${SZIP_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
IMPORTED_SONAME "${CMAKE_SHARED_LIBRARY_PREFIX}${SZIP_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${SZIP_VERSION_STRING}"
|
||||
SOVERSION "${SZIP_VERSION_STRING}"
|
||||
)
|
||||
IF (CYGWIN)
|
||||
SET_TARGET_PROPERTIES(szip PROPERTIES
|
||||
IMPORTED_IMPLIB "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_IMPORT_LIBRARY_PREFIX}${SZIP_LIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX}"
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_IMPORT_LIBRARY_PREFIX}${SZIP_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
)
|
||||
ELSE (CYGWIN)
|
||||
SET_TARGET_PROPERTIES(szip PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}${SZIP_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
IMPORTED_SONAME "${CMAKE_SHARED_LIBRARY_PREFIX}${SZIP_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${SZIP_VERSION_STRING}"
|
||||
SOVERSION "${SZIP_VERSION_STRING}"
|
||||
)
|
||||
ENDIF (CYGWIN)
|
||||
ENDIF (WIN32 AND NOT MINGW)
|
||||
ELSE (${libtype} MATCHES "SHARED")
|
||||
IF (WIN32 AND NOT MINGW)
|
||||
@ -259,11 +273,18 @@ MACRO (EXTERNAL_ZLIB_LIBRARY compress_type libtype)
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${BLDTYPE}/${CMAKE_IMPORT_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
)
|
||||
ELSE (WIN32 AND NOT MINGW)
|
||||
SET_TARGET_PROPERTIES(zlib PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
IMPORTED_SONAME "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${ZLIB_VERSION_STRING}"
|
||||
SOVERSION "${ZLIB_VERSION_STRING}"
|
||||
)
|
||||
IF (CYGWIN)
|
||||
SET_TARGET_PROPERTIES(zlib PROPERTIES
|
||||
IMPORTED_IMPLIB "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_IMPORT_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${CMAKE_IMPORT_LIBRARY_SUFFIX}"
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_IMPORT_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
)
|
||||
ELSE (CYGWIN)
|
||||
SET_TARGET_PROPERTIES(zlib PROPERTIES
|
||||
IMPORTED_LOCATION "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
||||
IMPORTED_SONAME "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_SHARED_LIBRARY_PREFIX}${ZLIB_LIB_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}.${ZLIB_VERSION_STRING}"
|
||||
SOVERSION "${ZLIB_VERSION_STRING}"
|
||||
)
|
||||
ENDIF (CYGWIN)
|
||||
ENDIF (WIN32 AND NOT MINGW)
|
||||
ELSE (${libtype} MATCHES "SHARED")
|
||||
IF (WIN32 AND NOT MINGW)
|
||||
|
Loading…
Reference in New Issue
Block a user