summaryrefslogtreecommitdiff
path: root/cmake/install_macros.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
commitef4685eccf5b93c6d6df16421dcd9d7e1705e115 (patch)
tree1c580e89204f8de7b64041f3e5ab14bd5eb9f4d0 /cmake/install_macros.cmake
parent82b07c4d8a3d91b48f1407f566e3e534344e8db0 (diff)
downloadmariadb-git-ef4685eccf5b93c6d6df16421dcd9d7e1705e115.tar.gz
fix install_symlink on unixes other than osx
Diffstat (limited to 'cmake/install_macros.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()