mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
Use CMAKE_CFG_INTDIR instead of different MSVC and Xcode specific
configuration names
This commit is contained in:
parent
b5761e6348
commit
962d3fb94a
1 changed files with 2 additions and 3 deletions
|
@ -30,8 +30,7 @@ MACRO (INSTALL_DEBUG_SYMBOLS targets)
|
|||
STRING(REPLACE ".exe" ".pdb" pdb_location ${location})
|
||||
STRING(REPLACE ".dll" ".pdb" pdb_location ${pdb_location})
|
||||
STRING(REPLACE ".lib" ".pdb" pdb_location ${pdb_location})
|
||||
STRING(REPLACE "$(OutDir)" "\${CMAKE_INSTALL_CONFIG_NAME}" pdb_location ${pdb_location})
|
||||
STRING(REPLACE "$(ConfigurationName)" "\${CMAKE_INSTALL_CONFIG_NAME}" pdb_location ${pdb_location})
|
||||
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" pdb_location ${pdb_location})
|
||||
INSTALL(FILES ${pdb_location} DESTINATION ${INSTALL_LOCATION})
|
||||
ENDFOREACH()
|
||||
ENDIF()
|
||||
|
@ -62,7 +61,7 @@ IF(UNIX)
|
|||
DEPENDS ${output})
|
||||
SET_TARGET_PROPERTIES(symlink_${linkbasename}${ext} PROPERTIES CLEAN_DIRECT_OUTPUT 1)
|
||||
# For Xcode, replace project config with install config
|
||||
STRING(REPLACE "$(CONFIGURATION)" "\${CMAKE_INSTALL_CONFIG_NAME}" output ${output})
|
||||
STRING(REPLACE "${CMAKE_CFG_INTDIR}" "\${CMAKE_INSTALL_CONFIG_NAME}" output ${output})
|
||||
INSTALL(FILES ${output} DESTINATION ${destination})
|
||||
ENDIF()
|
||||
ENDMACRO()
|
||||
|
|
Loading…
Reference in a new issue