From b2a11095a24d66c193784aba4455daca0dd90c96 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 27 Oct 2017 12:54:19 +0200 Subject: cmake/msvc: fix .sln build --- cmake/msvc.cmake | 2 +- cmake/opentrack-platform.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index f29800a3..9136e2eb 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -72,7 +72,7 @@ set(_LDFLAGS_STATIC "-machine:X86 -WX") set(_LDFLAGS_STATIC_RELEASE "-LTCG:INCREMENTAL") set(_LDFLAGS_STATIC_DEBUG "") -set(CMAKE_RC_FLAGS "-nologo -DWIN32") +set(CMAKE_RC_FLAGS "/nologo -DWIN32") set(new-__otr_already_initialized "_${cc}_${base-cflags}_") if(NOT "${__otr_already_initialized}" STREQUAL "${new-__otr_already_initialized}") diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index b977c5d8..e7849434 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -67,7 +67,7 @@ if(MSVC) if(NOT CMAKE_COMPILER_IS_CLANG) if(MSVC_VERSION GREATER 1909) # visual studio 2017 - set(__stuff "-permissive- -diagnostics:caret -Qvec-report:1") + set(__stuff "-permissive- -Qvec-report:1") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${__stuff}") set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} ${__stuff}") endif() -- cgit v1.2.3