mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r21785] Correct static lib naming when on windows
This commit is contained in:
parent
32f91a685b
commit
6357e17185
@ -220,7 +220,6 @@ MACRO (EXTERNAL_ZLIB_LIBRARY compress_type libtype)
|
||||
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY:PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
|
||||
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY:PATH=${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}
|
||||
-DCMAKE_ANSI_CFLAGS:STRING=${CMAKE_ANSI_CFLAGS}
|
||||
-DHDF_LEGACY_NAMING:BOOL=${HDF_LEGACY_NAMING}
|
||||
)
|
||||
ELSEIF (${compress_type} MATCHES "TGZ")
|
||||
EXTERNALPROJECT_ADD (ZLIB
|
||||
@ -236,7 +235,6 @@ MACRO (EXTERNAL_ZLIB_LIBRARY compress_type libtype)
|
||||
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY:PATH=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
|
||||
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY:PATH=${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}
|
||||
-DCMAKE_ANSI_CFLAGS:STRING=${CMAKE_ANSI_CFLAGS}
|
||||
-DHDF_LEGACY_NAMING:BOOL=${HDF_LEGACY_NAMING}
|
||||
)
|
||||
ENDIF (${compress_type} MATCHES "SVN")
|
||||
EXTERNALPROJECT_GET_PROPERTY (ZLIB BINARY_DIR SOURCE_DIR)
|
||||
@ -342,12 +340,7 @@ ENDMACRO (IDE_SOURCE_PROPERTIES)
|
||||
MACRO (TARGET_NAMING target libtype)
|
||||
IF (WIN32 AND NOT MINGW)
|
||||
IF (${libtype} MATCHES "SHARED")
|
||||
IF (HDF_LEGACY_NAMING)
|
||||
SET_TARGET_PROPERTIES (${target} PROPERTIES OUTPUT_NAME "dll")
|
||||
SET_TARGET_PROPERTIES (${target} PROPERTIES PREFIX "${target}")
|
||||
ELSE (HDF_LEGACY_NAMING)
|
||||
SET_TARGET_PROPERTIES (${target} PROPERTIES OUTPUT_NAME "${target}dll")
|
||||
ENDIF (HDF_LEGACY_NAMING)
|
||||
SET_TARGET_PROPERTIES (${target} PROPERTIES OUTPUT_NAME "${target}dll")
|
||||
ENDIF (${libtype} MATCHES "SHARED")
|
||||
ENDIF (WIN32 AND NOT MINGW)
|
||||
ENDMACRO (TARGET_NAMING)
|
||||
@ -357,26 +350,16 @@ MACRO (HDF_SET_LIB_OPTIONS libtarget libname libtype)
|
||||
# message (STATUS "${libname} libtype: ${libtype}")
|
||||
IF (${libtype} MATCHES "SHARED")
|
||||
IF (WIN32 AND NOT MINGW)
|
||||
IF (HDF_LEGACY_NAMING)
|
||||
SET (LIB_RELEASE_NAME "${libname}dll")
|
||||
SET (LIB_DEBUG_NAME "${libname}ddll")
|
||||
ELSE (HDF_LEGACY_NAMING)
|
||||
SET (LIB_RELEASE_NAME "${libname}")
|
||||
SET (LIB_DEBUG_NAME "${libname}_D")
|
||||
ENDIF (HDF_LEGACY_NAMING)
|
||||
SET (LIB_RELEASE_NAME "${libname}")
|
||||
SET (LIB_DEBUG_NAME "${libname}_D")
|
||||
ELSE (WIN32 AND NOT MINGW)
|
||||
SET (LIB_RELEASE_NAME "${libname}")
|
||||
SET (LIB_DEBUG_NAME "${libname}_debug")
|
||||
ENDIF (WIN32 AND NOT MINGW)
|
||||
ELSE (${libtype} MATCHES "SHARED")
|
||||
IF (WIN32 AND NOT MINGW)
|
||||
IF (HDF_LEGACY_NAMING)
|
||||
SET (LIB_RELEASE_NAME "${libname}")
|
||||
SET (LIB_DEBUG_NAME "${libname}d")
|
||||
ELSE (HDF_LEGACY_NAMING)
|
||||
SET (LIB_RELEASE_NAME "lib${libname}")
|
||||
SET (LIB_DEBUG_NAME "lib${libname}_D")
|
||||
ENDIF (HDF_LEGACY_NAMING)
|
||||
SET (LIB_RELEASE_NAME "lib${libname}")
|
||||
SET (LIB_DEBUG_NAME "lib${libname}_D")
|
||||
ELSE (WIN32 AND NOT MINGW)
|
||||
# if the generator supports configuration types or if the CMAKE_BUILD_TYPE has a value
|
||||
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
||||
|
Loading…
Reference in New Issue
Block a user