From ca7c03f825e1660b83cf163dc08ce7f880dfe0a7 Mon Sep 17 00:00:00 2001 From: Christoph Schulz Date: Sun, 9 Sep 2018 23:24:33 +0200 Subject: [PATCH] Add instead of replace linker flags (fix for LLVM toolchain) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 225e287a..bdf867be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -992,7 +992,7 @@ endif() if (MSVC) # Suppress linker warnings caused by #ifdef omission # of file content. - set( CMAKE_STATIC_LINKER_FLAGS /ignore:4221 ) + set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} /ignore:4221") set (PDB_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin") set (PDB_NAME "libzmq${MSVC_TOOLSET}-mt-gd-${ZMQ_VERSION_MAJOR}_${ZMQ_VERSION_MINOR}_${ZMQ_VERSION_PATCH}") function(enable_vs_guideline_checker target)