summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-01-12 20:17:04 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-01-12 20:17:04 (GMT)
commit19c18e44ed113af84896604d7cedcc892f8338dc (patch)
tree0417383f8d831f3d40fe7fecbc0508c36a677498 /config/cmake_ext_mod
parentaef900c6741aea851b218169648185b1c8e5e435 (diff)
downloadhdf5-19c18e44ed113af84896604d7cedcc892f8338dc.zip
hdf5-19c18e44ed113af84896604d7cedcc892f8338dc.tar.gz
hdf5-19c18e44ed113af84896604d7cedcc892f8338dc.tar.bz2
Revert CMAKE_BUILD_TYPE for matches - need to redesign
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index 76e0612..8a6b74d 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -24,6 +24,9 @@ macro (SET_HDF5_BUILD_TYPE)
set(HDF5_BUILD_TYPE "Release")
endif()
endif()
+ if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release")
+ endif()
endmacro ()
#-------------------------------------------------------------------------------
@@ -162,7 +165,7 @@ macro (HDF_IMPORT_SET_LIB_OPTIONS libtarget libname libtype libversion)
if (${importtype} MATCHES "IMPORT")
set (importprefix "${CMAKE_STATIC_LIBRARY_PREFIX}")
endif ()
- if (${HDF5_BUILD_TYPE} MATCHES "Debug")
+ if (${CMAKE_BUILD_TYPE} MATCHES "Debug")
set (IMPORT_LIB_NAME ${LIB_DEBUG_NAME})
else ()
set (IMPORT_LIB_NAME ${LIB_RELEASE_NAME})