From 146dca1359e185e06f7b58026aab7f8324bac562 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 2 Aug 2019 09:15:53 +0200 Subject: [PATCH] No genrator expressions in set() allowed, apparently. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 06f3161..a758f95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ set(DEBUG_LDFLAGS add_compile_options("$<$:${DEBUG_CXXFLAGS}>") # add_link_options was introduced in version 3.13. if(${CMAKE_VERSION} VERSION_LESS 3.13) - set(CMAKE_SHARED_LINKER_FLAGS "$<$:${DEBUG_LDFLAGS}>") + set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${DEBUG_LDFLAGS}") else() add_link_options("$<$:${DEBUG_LDFLAGS}>") endif()