Skip to content

Commit

Permalink
fix error overwriting beginning of config file
Browse files Browse the repository at this point in the history
  • Loading branch information
kdt3rd authored and nickrasmussen committed Aug 8, 2018
1 parent 45cb2c8 commit 01680dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ ELSE ()
ENDIF ()

IF (FORCE_CXX03)
FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#define ILMBASE_FORCE_CXX03 1\n" )
FILE ( APPEND ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#define ILMBASE_FORCE_CXX03 1\n" )
ELSE ()
# really only care about c++11 right now for the threading bits, but this can be changed to 14
# when needed...
FILE ( WRITE ${CMAKE_CURRENT_BINARY_DIR}/config/IlmBaseConfig.h "#if __cplusplus < 201103L\n# error \"Modern C++ 11/14 not enabled but force cxx98 not set\"\n#endif\n" )
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 ()

IF (NAMESPACE_VERSIONING)
Expand Down

0 comments on commit 01680dc

Please sign in to comment.