From: Michihiro NAKAJIMA Date: Sun, 19 Feb 2012 23:39:05 +0000 (+0900) Subject: Enable built-in functions on MSVC. X-Git-Tag: v3.0.4~2^2~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34305442e9d093ad5934f5fb2307067885a9d3d6;p=thirdparty%2Flibarchive.git Enable built-in functions on MSVC. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 11d737815..d15064d6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -84,7 +84,9 @@ IF (MSVC) # Enable level 4 C4706: The test value in a conditional expression was the # result of an assignment. SET(CMAKE_C_FLAGS_DEBUG - "${CMAKE_C_FLAGS_DEBUG} /we4061 /we4296 /we4389 /we4505 /we4706") + "${CMAKE_C_FLAGS_DEBUG} /Oi /we4061 /we4296 /we4389 /we4505 /we4706") + # Set compile flags for release build. + SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Oi") ENDIF (MSVC) # Enable CTest/CDash support