summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-08-28 17:39:30 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-08-28 17:39:30 (GMT)
commitb257bab294e5cef35dca83222c44572922f822fa (patch)
treeb2aa9e5e85a7d6ada4b05f6a7e9150cbc8054ba2 /config
parent1fa894c6b9ed3bec08d449aa276205b1aa127208 (diff)
downloadhdf5-b257bab294e5cef35dca83222c44572922f822fa.zip
hdf5-b257bab294e5cef35dca83222c44572922f822fa.tar.gz
hdf5-b257bab294e5cef35dca83222c44572922f822fa.tar.bz2
[svn-r22720] Fix RelWithDebInfo packaging
Diffstat (limited to 'config')
-rw-r--r--config/cmake/HDFMacros.cmake20
1 files changed, 10 insertions, 10 deletions
diff --git a/config/cmake/HDFMacros.cmake b/config/cmake/HDFMacros.cmake
index 568b3ff..099b97f 100644
--- a/config/cmake/HDFMacros.cmake
+++ b/config/cmake/HDFMacros.cmake
@@ -34,18 +34,18 @@ MACRO (IDE_SOURCE_PROPERTIES SOURCE_PATH HEADERS SOURCES)
ENDMACRO (IDE_SOURCE_PROPERTIES)
#-------------------------------------------------------------------------------
-MACRO (TARGET_NAMING target libtype)
+MACRO (TARGET_NAMING libtarget libtype)
IF (WIN32)
IF (${libtype} MATCHES "SHARED")
- SET_TARGET_PROPERTIES (${target} PROPERTIES OUTPUT_NAME "${target}dll")
+ SET_TARGET_PROPERTIES (${libtarget} PROPERTIES OUTPUT_NAME "${libtarget}dll")
ENDIF (${libtype} MATCHES "SHARED")
ENDIF (WIN32)
ENDMACRO (TARGET_NAMING)
#-------------------------------------------------------------------------------
-MACRO (INSTALL_TARGET_PDB target targetdestination targetcomponent)
+MACRO (INSTALL_TARGET_PDB libtarget targetdestination targetcomponent)
IF (WIN32 AND MSVC)
- GET_TARGET_PROPERTY (target_name ${target} RELWITHDEBINFO_OUTPUT_NAME)
+ GET_TARGET_PROPERTY (target_name ${libtarget} RELWITHDEBINFO_OUTPUT_NAME)
INSTALL (
FILES
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${CMAKE_IMPORT_LIBRARY_PREFIX}${target_name}.pdb
@@ -58,10 +58,10 @@ MACRO (INSTALL_TARGET_PDB target targetdestination targetcomponent)
ENDMACRO (INSTALL_TARGET_PDB)
#-------------------------------------------------------------------------------
-MACRO (INSTALL_PROGRAM_PDB target targetdestination targetcomponent)
+MACRO (INSTALL_PROGRAM_PDB progtarget targetdestination targetcomponent)
IF (WIN32 AND MSVC)
- GET_TARGET_PROPERTY (target_name ${target} RELWITHDEBINFO_OUTPUT_NAME)
- GET_TARGET_PROPERTY (target_prefix h5dump PREFIX)
+ GET_TARGET_PROPERTY (target_name ${progtarget} RELWITHDEBINFO_OUTPUT_NAME)
+ GET_TARGET_PROPERTY (target_prefix ${progtarget} PREFIX)
INSTALL (
FILES
${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target_prefix}${target_name}.pdb
@@ -121,16 +121,16 @@ MACRO (HDF_SET_LIB_OPTIONS libtarget libname libtype)
ENDMACRO (HDF_SET_LIB_OPTIONS)
#-------------------------------------------------------------------------------
-MACRO (TARGET_FORTRAN_WIN_PROPERTIES target addlinkflags)
+MACRO (TARGET_FORTRAN_WIN_PROPERTIES forttarget addlinkflags)
IF (WIN32 AND MSVC)
IF (BUILD_SHARED_LIBS)
- SET_TARGET_PROPERTIES (${target}
+ SET_TARGET_PROPERTIES (${forttarget}
PROPERTIES
COMPILE_FLAGS "/dll"
LINK_FLAGS "/SUBSYSTEM:CONSOLE ${addlinkflags}"
)
ELSE (BUILD_SHARED_LIBS)
- SET_TARGET_PROPERTIES (${target}
+ SET_TARGET_PROPERTIES (${forttarget}
PROPERTIES
COMPILE_FLAGS "/MD"
LINK_FLAGS "/SUBSYSTEM:CONSOLE ${addlinkflags}"