]> git.lyx.org Git - features.git/commitdiff
disable checked iterators for msvc release builds to get maximum speed
authorPeter Kümmel <syntheticpp@gmx.net>
Thu, 26 Oct 2006 18:38:46 +0000 (18:38 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Thu, 26 Oct 2006 18:38:46 +0000 (18:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15568 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt

index 65edda58ab730076ca58d974ae34931505c19d9e..f661eaa3a960c9d46ef4abc7e61f108d44ef1ec9 100644 (file)
@@ -84,7 +84,9 @@ if(MSVC)
        endif(MSVC_IDE)
 
        ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE) 
-
+       
+       # disable checked iterators for msvc release builds to get maximum speed
+       set(CMAKE_CXX_FLAGS_RELEASE  "${CMAKE_CXX_FLAGS_RELEASE} /D_SECURE_SCL=0")
 else(MSVC)
        add_definitions(-DBOOST_USER_CONFIG="<config.h>")
 endif(MSVC)