diff --git a/cmake/install.cmake b/cmake/install.cmake index bade4a7bc..0aaad283b 100644 --- a/cmake/install.cmake +++ b/cmake/install.cmake @@ -30,9 +30,9 @@ MACRO(_GET_TARGET_REAL_PATHNAME TGT_NAME VAR_PATHNAME) GET_TARGET_PROPERTY(${VAR_PATHNAME} ${TGT_NAME} LOCATION) MESSAGE(STATUS "GET_TARGET_REAL_PATHNAME(${TGT_NAME})=${${VAR_PATHNAME}}") IF(MSVC) - STRING(REPLACE \"$(OutDir)\" \"\${CMAKE_INSTALL_CONFIG_NAME}\" ${VAR_PATHNAME} \${${VAR_PATHNAME}}) - STRING(REPLACE \"$(ConfigurationName)\" \"\${CMAKE_INSTALL_CONFIG_NAME}\" ${VAR_PATHNAME} \${${VAR_PATHNAME}}) - STRING(REPLACE \"$(Configuration)\" \"\${CMAKE_INSTALL_CONFIG_NAME}\" ${VAR_PATHNAME} \${${VAR_PATHNAME}}) + STRING(REPLACE "$(OutDir)" "${CMAKE_INSTALL_CONFIG_NAME}" ${VAR_PATHNAME} ${${VAR_PATHNAME}}) + STRING(REPLACE "$(ConfigurationName)" "${CMAKE_INSTALL_CONFIG_NAME}" ${VAR_PATHNAME} ${${VAR_PATHNAME}}) + STRING(REPLACE "$(Configuration)" "${CMAKE_INSTALL_CONFIG_NAME}" ${VAR_PATHNAME} ${${VAR_PATHNAME}}) ENDIF(MSVC) ENDMACRO(_GET_TARGET_REAL_PATHNAME TGT_NAME VAR_PATHNAME) @@ -66,7 +66,7 @@ ENDMACRO(SD_SETUP_SETTINGS_VERSION) MACRO(SD_UPDATE_SETTINGS_VERSION) # Determine the full path-name of xmlversion.exe - IF(FALSE AND WIN32) + IF(MSVC) # Does not work with MinGW at leat !? MESSAGE(STATUS "CMAKE_BINARY_DIR=${CMAKE_BINARY_DIR}") @@ -77,6 +77,7 @@ MACRO(SD_UPDATE_SETTINGS_VERSION) _GET_TARGET_REAL_PATHNAME(xmlversion _XMLVER_EXE) ENDIF() + MESSAGE(STATUS "_XMLVER_EXE=${_XMLVER_EXE}") # In order to run xmlversion.exe in the build tree (see below), under Windows, # we nearly always have to copy dependency DLLs next to it.