diff options
author | Martijn Berger <martijn.berger@gmail.com> | 2014-08-02 11:59:09 +0400 |
---|---|---|
committer | Martijn Berger <martijn.berger@gmail.com> | 2014-08-02 11:59:09 +0400 |
commit | bc9bbca41b6d78b99520a4efb35e299d2def94bb (patch) | |
tree | f5c13a4795ad754d40905b876456a2a0af71371b | |
parent | 9c3025cd26d547667847c81ec53b503d876be906 (diff) |
Move to OIIO 1.4 also for windows x86
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | build_files/scons/config/win32-vc-config.py | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ef906ad00c..4ea112bfbe7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1001,10 +1001,11 @@ elseif(WIN32) # We want to support Vista level ABI for x64 if(NOT MSVC_VERSION VERSION_LESS 1700) add_definitions(-D_WIN32_WINNT=0x600) - add_definitions(-DOIIO_STATIC_BUILD) endif() endif() + add_definitions(-DOIIO_STATIC_BUILD) + set(CMAKE_CXX_FLAGS "/nologo /J /Gd /EHsc /MP" CACHE STRING "MSVC MT C++ flags " FORCE) set(CMAKE_C_FLAGS "/nologo /J /Gd /MP" CACHE STRING "MSVC MT C++ flags " FORCE) diff --git a/build_files/scons/config/win32-vc-config.py b/build_files/scons/config/win32-vc-config.py index ebe24bf0644..c036bf317cb 100644 --- a/build_files/scons/config/win32-vc-config.py +++ b/build_files/scons/config/win32-vc-config.py @@ -231,6 +231,9 @@ CCFLAGS = ['/nologo', '/J', '/W3', '/Gd', '/w34062', '/wd4018', '/wd4065', '/wd4 CXXFLAGS = ['/EHsc'] BGE_CXXFLAGS = ['/O2', '/Ob2', '/EHsc', '/GR', '/fp:fast', '/arch:SSE'] +if VC_VERSION == '12.0': + CCFLAGS.append('/DOIIO_STATIC_BUILD') # OIIO api changed with 1.4 making this needed + BF_DEBUG_CCFLAGS = ['/Zi', '/Ob0', '/Od', '/FR${TARGET}.sbr'] CPPFLAGS = ['-DWIN32','-D_CONSOLE', '-D_LIB', '-D_CRT_SECURE_NO_DEPRECATE', '-DOPJ_STATIC'] |