From 98cb8723dcfbe27b9058cc21605f5a663d743bfe Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 13 Oct 2017 15:05:15 +0200 Subject: cmake/msvc: fix --- cmake/msvc.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmake/msvc.cmake') diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index aed0fcd9..c8edd1fd 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -19,7 +19,7 @@ set(cc "${cc} -bigobj") set(warns_ "") -set(warns-disable 4530 4577 4789 4244 4702 4530 4244 4127 4458 4456 4251) +set(warns-disable 4530 4577 4789 4244 4702 4530 4244 4127 4458 4456 4251 4100) foreach(i ${warns-disable}) set(warns_ "${warns_} -wd${i}") @@ -69,9 +69,9 @@ if(NOT __otr_already_initialized OR "$ENV{OTR_REDO}") set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install" CACHE PATH "" FORCE) set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "" FORCE) - set(CMAKE_STATIC_LINKER_FLAGS "${_LDFLAGS_STATIC} ${CMAKE_STATIC_LINKER_FLAGS}" CACHE STRING "" FORCE) - set(CMAKE_STATIC_LINKER_FLAGS_RELEASE "${_LDFLAGS_STATIC_RELEASE} ${CMAKE_STATIC_LINKER_FLAGS_RELEASE}" CACHE STRING "" FORCE) - set(CMAKE_STATIC_LINKER_FLAGS_DEBUG "${_LDFLAGS_STATIC_DEBUG} ${CMAKE_STATIC_LINKER_FLAGS_DEBUG}" CACHE STRING "" FORCE) + set(CMAKE_STATIC_LINKER_FLAGS "${_LDFLAGS_STATIC}" CACHE STRING "" FORCE) + set(CMAKE_STATIC_LINKER_FLAGS_RELEASE "${_LDFLAGS_STATIC_RELEASE}" CACHE STRING "" FORCE) + set(CMAKE_STATIC_LINKER_FLAGS_DEBUG "${_LDFLAGS_STATIC_DEBUG}" CACHE STRING "" FORCE) foreach(j C CXX) foreach(i "" _DEBUG _RELEASE) -- cgit v1.2.3