Skip to content

Commit

Permalink
Bump C++ standard version to C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
falbrechtskirchinger committed Aug 5, 2023
1 parent f411c3f commit a17ba9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ENDIF()
add_executable(s25edit ${MAIN_SOURCES} ${CIO_SOURCES} ${icon_RC})
target_link_libraries(s25edit PRIVATE SGE rttrConfig s25Common gamedata endian::static Boost::nowide PUBLIC Boost::disable_autolinking)
target_include_directories(s25edit PRIVATE include)
target_compile_features(s25edit PRIVATE cxx_std_17)

if(MINGW)
target_link_libraries(s25edit PRIVATE -mconsole)
Expand Down
2 changes: 1 addition & 1 deletion SGE/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file(GLOB_RECURSE SGE_SOURCES *.cpp *.h)
add_library(SGE STATIC ${SGE_SOURCES})
target_link_libraries(SGE PUBLIC Boost::boost SDL2::SDL2)
target_include_directories(SGE PRIVATE include/SGE PUBLIC include)
target_compile_features(SGE PUBLIC cxx_std_14)
target_compile_features(SGE PUBLIC cxx_std_17)
set_target_properties(SGE PROPERTIES CXX_EXTENSIONS OFF)

include(EnableWarnings)
Expand Down

0 comments on commit a17ba9c

Please sign in to comment.