mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
fix install_symlink on unixes other than osx
This commit is contained in:
parent
09c3bb13d4
commit
ddfdb1b1d1
2 changed files with 7 additions and 2 deletions
|
|
@ -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)
|
||||||
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)
|
||||||
# For Xcode, replace project config with install config
|
IF(CMAKE_GENERATOR MATCHES "Xcode")
|
||||||
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" output ${output})
|
# 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})
|
INSTALL(FILES ${output} DESTINATION ${destination})
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDMACRO()
|
ENDMACRO()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue