summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@linux-rbsx>2009-12-10 03:48:21 +0100
committerVladislav Vaintroub <vvaintroub@linux-rbsx>2009-12-10 03:48:21 +0100
commitddfdb1b1d161b4b0c96071325581ae6f2419a2f2 (patch)
tree1c580e89204f8de7b64041f3e5ab14bd5eb9f4d0 /cmake
parent09c3bb13d4515484afdb9ed25241f4c2c1a6aac3 (diff)
downloadmariadb-git-ddfdb1b1d161b4b0c96071325581ae6f2419a2f2.tar.gz
fix install_symlink on unixes other than osx
Diffstat (limited to 'cmake')
-rw-r--r--cmake/install_macros.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmake/install_macros.cmake b/cmake/install_macros.cmake
index 3a5529efc15..3925ce292de 100644
--- a/cmake/install_macros.cmake
+++ b/cmake/install_macros.cmake
@@ -60,8 +60,11 @@ IF(UNIX)
ALL
DEPENDS ${output})
SET_TARGET_PROPERTIES(symlink_${linkbasename}${ext} PROPERTIES CLEAN_DIRECT_OUTPUT 1)
- # For Xcode, replace project config with install config
- STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" output ${output})
+ IF(CMAKE_GENERATOR MATCHES "Xcode")
+ # For Xcode, replace project config with install config
+ STRING(REPLACE "${CMAKE_CFG_INTDIR}"
+ "\${CMAKE_INSTALL_CONFIG_NAME}" output ${output})
+ ENDIF()
INSTALL(FILES ${output} DESTINATION ${destination})
ENDIF()
ENDMACRO()