diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-11-16 15:27:02 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-11-16 15:27:02 (GMT) |
commit | ef26f71457a7c051de0428dc3d7db9d085fd8036 (patch) | |
tree | 435779097f0ba813856ef90b215b589482729674 /config | |
parent | 79fe0373aac0601f1dd9e3e0ee14cd6c22f0889c (diff) | |
download | hdf5-ef26f71457a7c051de0428dc3d7db9d085fd8036.zip hdf5-ef26f71457a7c051de0428dc3d7db9d085fd8036.tar.gz hdf5-ef26f71457a7c051de0428dc3d7db9d085fd8036.tar.bz2 |
[svn-r19788] Check for CMAKE_BUILD_TYPE set if not WIN32 in library prefix naming. Unset needs prefix to be lib.
Diffstat (limited to 'config')
-rw-r--r-- | config/cmake/HDF5Macros.cmake | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config/cmake/HDF5Macros.cmake b/config/cmake/HDF5Macros.cmake index a20e3b5..6146e66 100644 --- a/config/cmake/HDF5Macros.cmake +++ b/config/cmake/HDF5Macros.cmake @@ -73,8 +73,14 @@ MACRO (H5_SET_LIB_OPTIONS libtarget libname libtype) SET (LIB_DEBUG_NAME "lib${libname}_D") ENDIF (H5_LEGACY_NAMING) ELSE (WIN32 AND NOT MINGW) - SET (LIB_RELEASE_NAME "lib${libname}") - SET (LIB_DEBUG_NAME "lib${libname}_debug") + # if the generator supports configuration types or if the CMAKE_BUILD_TYPE has a value + 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 (${libtype} MATCHES "SHARED") |