Skip to content

Commit

Permalink
Replace STRING(PREPEND ..) in CMakeLists.txt to support older CMake v…
Browse files Browse the repository at this point in the history
…ersions
  • Loading branch information
gabime committed Oct 6, 2019
1 parent 70357ce commit 1549ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 1549ff1

Please sign in to comment.