From e686b1c8e280051e20ba187bc4ea66ebedc21f97 Mon Sep 17 00:00:00 2001 From: Warmist Date: Sun, 15 Apr 2012 01:20:59 +0300 Subject: [PATCH 1/2] Orbital nuking of C4819 (code-page warning) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3cbbe6a1f..e39784adc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,9 @@ endif(CMAKE_CONFIGURATION_TYPES) cmake_minimum_required(VERSION 2.8 FATAL_ERROR) project(dfhack) +# disable C4819 code-page warning +add_definitions( "/wd4819" ) + # set up folder structures for IDE solutions # MSVC Express won't load solutions that use this. It also doesn't include MFC supported # Check for MFC! From f235d8f371082e4bc9bb17651eb7d3cc6fb5e54e Mon Sep 17 00:00:00 2001 From: Warmist Date: Sun, 15 Apr 2012 01:27:02 +0300 Subject: [PATCH 2/2] Orbital nuking was bit excessive... --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e39784adc..01b7c5804 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,8 +14,10 @@ endif(CMAKE_CONFIGURATION_TYPES) cmake_minimum_required(VERSION 2.8 FATAL_ERROR) project(dfhack) +if(MSVC) # disable C4819 code-page warning add_definitions( "/wd4819" ) +endif() # set up folder structures for IDE solutions # MSVC Express won't load solutions that use this. It also doesn't include MFC supported