Commit 1d320105 authored by Dan Lipsa's avatar Dan Lipsa

Fix hdf5 library names.

Change-Id: Iad597e207a4296dabf765ac084b28e2dcc2251de
parent db8d3e20
......@@ -74,28 +74,29 @@ MACRO (INSTALL_PROGRAM_PDB progtarget targetdestination targetcomponent)
ENDMACRO (INSTALL_PROGRAM_PDB)
#-------------------------------------------------------------------------------
MACRO (HDF_SET_LIB_OPTIONS libtarget libname libtype)
MACRO (HDF_SET_LIB_OPTIONS libtarget _libname libtype)
set (libname "${_libname}${VTK_CUSTOM_LIBRARY_SUFFIX}")
# message (STATUS "${libname} libtype: ${libtype}")
if (${libtype} MATCHES "SHARED")
if (WIN32)
set (LIB_RELEASE_NAME "${libname}")
set (LIB_DEBUG_NAME "${libname}_D")
set (LIB_DEBUG_NAME "${libname}")
else (WIN32)
set (LIB_RELEASE_NAME "${libname}")
set (LIB_DEBUG_NAME "${libname}_debug")
set (LIB_DEBUG_NAME "${libname}")
endif (WIN32)
else (${libtype} MATCHES "SHARED")
if (WIN32)
set (LIB_RELEASE_NAME "lib${libname}")
set (LIB_DEBUG_NAME "lib${libname}_D")
set (LIB_DEBUG_NAME "lib${libname}")
else (WIN32)
# 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")
set (LIB_DEBUG_NAME "${libname}")
else (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
set (LIB_RELEASE_NAME "lib${libname}")
set (LIB_DEBUG_NAME "lib${libname}_debug")
set (LIB_DEBUG_NAME "lib${libname}")
endif (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
endif (WIN32)
endif (${libtype} MATCHES "SHARED")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment