mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r19787] Check for CMAKE_BUILD_TYPE set if not WIN32 in library prefix naming. Unset needs prefix to be lib.
This commit is contained in:
parent
d9adf2d78d
commit
7fd26f00b7
@ -73,8 +73,14 @@ MACRO (H5_SET_LIB_OPTIONS libtarget libname libtype)
|
|||||||
SET (LIB_DEBUG_NAME "lib${libname}_D")
|
SET (LIB_DEBUG_NAME "lib${libname}_D")
|
||||||
ENDIF (H5_LEGACY_NAMING)
|
ENDIF (H5_LEGACY_NAMING)
|
||||||
ELSE (WIN32 AND NOT MINGW)
|
ELSE (WIN32 AND NOT MINGW)
|
||||||
SET (LIB_RELEASE_NAME "lib${libname}")
|
# if the generator supports configuration types or if the CMAKE_BUILD_TYPE has a value
|
||||||
SET (LIB_DEBUG_NAME "lib${libname}_debug")
|
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
||||||
|
SET (LIB_RELEASE_NAME "${libname}")
|
||||||
|
SET (LIB_DEBUG_NAME "${libname}_debug")
|
||||||
|
ELSE (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
||||||
|
SET (LIB_RELEASE_NAME "lib${libname}")
|
||||||
|
SET (LIB_DEBUG_NAME "lib${libname}_debug")
|
||||||
|
ENDIF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
||||||
ENDIF (WIN32 AND NOT MINGW)
|
ENDIF (WIN32 AND NOT MINGW)
|
||||||
ENDIF (${libtype} MATCHES "SHARED")
|
ENDIF (${libtype} MATCHES "SHARED")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user