mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-21 03:12:41 +08:00
Replace STRING(PREPEND ..) in CMakeLists.txt to support older CMake versions
This commit is contained in:
parent
70357ceff2
commit
1549ff12f1
@ -205,7 +205,7 @@ if (SPDLOG_INSTALL)
|
||||
#---------------------------------------------------------------------------------------
|
||||
get_target_property(PKG_CONFIG_DEFINES spdlog INTERFACE_COMPILE_DEFINITIONS)
|
||||
string(REPLACE ";" " -D" PKG_CONFIG_DEFINES "${PKG_CONFIG_DEFINES}")
|
||||
string(PREPEND PKG_CONFIG_DEFINES "-D")
|
||||
string(CONCAT PKG_CONFIG_DEFINES "-D" "${PKG_CONFIG_DEFINES}")
|
||||
configure_file("cmake/${PROJECT_NAME}.pc.in" "${pkg_config}" @ONLY)
|
||||
install(FILES "${pkg_config}" DESTINATION "${pkgconfig_install_dir}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user