]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Enable built-in functions on MSVC.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 19 Feb 2012 23:39:05 +0000 (08:39 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 19 Feb 2012 23:39:05 +0000 (08:39 +0900)
CMakeLists.txt

index 11d7378158d2bc07ccc3c86cab352d3724fa1301..d15064d6d7d27f492dd4713a91b9a366712b26b5 100644 (file)
@@ -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