Skip to content

Commit

Permalink
Fix c++11 detection issue on windows. Fix ilmbase DLL export warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
meshula authored and nickrasmussen committed Aug 8, 2018
1 parent 2811d5c commit 9885f97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,10 @@ ENDIF ()

IF (FORCE_CXX03)
FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#define ILMBASE_FORCE_CXX03 1\n" )
ELSE ()
ELIF (NOT WIN32)
# really only care about c++11 right now for the threading bits, but this can be changed to 14
# when needed...
# Note that the __cplusplus check is not valid under MSVC
FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#if __cplusplus < 201103L\n# error \"Modern C++ 11/14 not enabled but force cxx03 not set\"\n#endif\n" )
ENDIF ()

Expand Down

0 comments on commit 9885f97

Please sign in to comment.