Skip to content

Commit

Permalink
Cleanup changes, everything is C++17 now.
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjak committed Oct 11, 2021
1 parent 914a3cf commit d77ec04
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions Applications/Connectatron/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
set(CMAKE_CXX_STANDARD 17)

add_example(Connectatron
Connectatron.cpp
)
Expand Down
2 changes: 0 additions & 2 deletions Applications/Connectatron/Connectatron.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1106,8 +1106,6 @@ void Application_Initialize()
m_Editor = ed::CreateEditor(&config);
ed::SetCurrentEditor(m_Editor);

Node* node;

//NOTE: we can add example nodes here if needed

ed::NavigateToContent();
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Point CMake where to look for module files.
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/Support/CMakeModules)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)

if (DEFINED MSVC_VERSION)
if (MSVC_VERSION GREATER_EQUAL 1500)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++14")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17")
endif()
if (MSVC_VERSION GREATER_EQUAL 1910)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive-")
Expand Down

0 comments on commit d77ec04

Please sign in to comment.