mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +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)
|
||||
INSTALL(FILES Docs/INSTALL-BINARY DESTINATION .)
|
||||
ENDIF()
|
||||
GET_TARGET_PROPERTY(mysqld_location mysqld LOCATION)
|
||||
INSTALL(FILES ${mysqld_location} DESTINATION win)
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue