Skip to content

Commit 1549ff1

Browse files
committed
Replace STRING(PREPEND ..) in CMakeLists.txt to support older CMake versions
1 parent 70357ce commit 1549ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ if (SPDLOG_INSTALL)
205205
#---------------------------------------------------------------------------------------
206206
get_target_property(PKG_CONFIG_DEFINES spdlog INTERFACE_COMPILE_DEFINITIONS)
207207
string(REPLACE ";" " -D" PKG_CONFIG_DEFINES "${PKG_CONFIG_DEFINES}")
208-
string(PREPEND PKG_CONFIG_DEFINES "-D")
208+
string(CONCAT PKG_CONFIG_DEFINES "-D" "${PKG_CONFIG_DEFINES}")
209209
configure_file("cmake/${PROJECT_NAME}.pc.in" "${pkg_config}" @ONLY)
210210
install(FILES "${pkg_config}" DESTINATION "${pkgconfig_install_dir}")
211211

0 commit comments

Comments
 (0)