From 1549ff12f1aa61ffc4d9a8727c519034724392a0 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 6 Oct 2019 13:13:26 +0300 Subject: [PATCH] Replace STRING(PREPEND ..) in CMakeLists.txt to support older CMake versions --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c302bcd..12320fbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")