Changeset 8057 for code/branches/kicklib/cmake
- Timestamp:
- Mar 11, 2011, 3:26:56 AM (14 years ago)
- Location:
- code/branches/kicklib/cmake
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib/cmake/CompilerConfigMSVC.cmake
r7818 r8057 64 64 SET_COMPILER_FLAGS("-MD -O2 -Zi -DNDEBUG" RelWithDebInfo CACHE) 65 65 SET_COMPILER_FLAGS("-MD -O1 -DNDEBUG" MinSizeRel CACHE) 66 ADD_COMPILER_FLAGS("-D_SECURE_SCL=0" MSVC9 ReleaseAll CACHE) 66 67 # No iterator checking for release builds (MSVC 8 dosn't understand this though) 68 ADD_COMPILER_FLAGS("-D_SECURE_SCL=0" ReleaseAll CACHE) 69 70 # Newer MSVC versions come with std::shared_ptr which conflicts with 71 # boost::shared_ptr in cpptcl. And since we don't yet use the new C++ standard 72 # anyway, disable it completely. 73 ADD_COMPILER_FLAGS("-D_HAS_CPP0X=0" CACHE) 67 74 68 75 # Use Link time code generation for Release config if ORXONOX_RELEASE is defined -
code/branches/kicklib/cmake/LibraryConfig.cmake
r7956 r8057 59 59 ELSEIF(MSVC90) 60 60 SET(_compiler_prefix msvc9) 61 ELSEIF(MSVC100) 62 SET(_compiler_prefix msvc10) 61 63 ENDIF() 62 64 FIND_PATH(DEPENDENCY_PACKAGE_DIR -
code/branches/kicklib/cmake/PackageConfigMSVC.cmake
r7818 r8057 36 36 37 37 # Choose right MSVC version 38 STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?) 38 STRING(REGEX REPLACE "^Visual Studio ([0-9][0-9]?).*$" "\\1" 39 39 _msvc_version "${CMAKE_GENERATOR}") 40 40 -
code/branches/kicklib/cmake/tools/TargetUtilities.cmake
r7980 r8057 223 223 IF(_arg_ORXONOX_EXTERNAL) 224 224 REMOVE_COMPILER_FLAGS("-W3 -W4" MSVC) 225 ADD_COMPILER_FLAGS("-w") 225 ADD_COMPILER_FLAGS("-w" NOT MSVC) 226 ADD_COMPILER_FLAGS("-W0" MSVC) 226 227 ENDIF() 227 228
Note: See TracChangeset
for help on using the changeset viewer.