Commit ef4685ec authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

fix install_symlink on unixes other than osx

parent 82b07c4d
...@@ -239,3 +239,5 @@ INSTALL(FILES COPYING EXCEPTIONS-CLIENT README DESTINATION .) ...@@ -239,3 +239,5 @@ INSTALL(FILES COPYING EXCEPTIONS-CLIENT README DESTINATION .)
IF(UNIX) IF(UNIX)
INSTALL(FILES Docs/INSTALL-BINARY DESTINATION .) INSTALL(FILES Docs/INSTALL-BINARY DESTINATION .)
ENDIF() ENDIF()
GET_TARGET_PROPERTY(mysqld_location mysqld LOCATION)
INSTALL(FILES ${mysqld_location} DESTINATION win)
...@@ -60,8 +60,11 @@ IF(UNIX) ...@@ -60,8 +60,11 @@ IF(UNIX)
ALL ALL
DEPENDS ${output}) DEPENDS ${output})
SET_TARGET_PROPERTIES(symlink_${linkbasename}${ext} PROPERTIES CLEAN_DIRECT_OUTPUT 1) SET_TARGET_PROPERTIES(symlink_${linkbasename}${ext} PROPERTIES CLEAN_DIRECT_OUTPUT 1)
IF(CMAKE_GENERATOR MATCHES "Xcode")
# For Xcode, replace project config with install config # For Xcode, replace project config with install config
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" output ${output}) STRING(REPLACE "${CMAKE_CFG_INTDIR}"
"\${CMAKE_INSTALL_CONFIG_NAME}" output ${output})
ENDIF()
INSTALL(FILES ${output} DESTINATION ${destination}) INSTALL(FILES ${output} DESTINATION ${destination})
ENDIF() ENDIF()
ENDMACRO() ENDMACRO()
......
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