Skip to content

Commit

Permalink
Try adding a CMake define for NOMINMAX
Browse files Browse the repository at this point in the history
  • Loading branch information
Laguna1989 committed Oct 31, 2023
1 parent 7c6113f commit e000fc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ if (JT_ENABLE_WEB)
"SHELL:--use-preload-plugins"
"SHELL:--preload-file assets")
elseif (MSVC)
add_compile_definitions(NOMINMAX)
elseif (NOT CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lstdc++fs")
endif ()
Expand Down
4 changes: 1 addition & 3 deletions impl/game/main.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#define NOMINMAX

#include "main.hpp"
#include "main.hpp"
#include <action_commands/action_command_manager.hpp>
#include <action_commands/basic_action_commands.hpp>
#include <audio/audio/audio_impl.hpp>
Expand Down

0 comments on commit e000fc7

Please sign in to comment.