Skip to content

Commit

Permalink
TODO squash try to fix double definition properly
Browse files Browse the repository at this point in the history
  • Loading branch information
garymm committed Feb 1, 2024
1 parent 10bf72a commit 3f3672b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(GNUInstallDirs)

if(ANDROID)
set(sysname Android)
e et(sysname Android)
elseif(APPLE)
set(sysname OSX)
elseif(MSVC)
Expand Down
4 changes: 0 additions & 4 deletions include/IrrCompileConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
#define IRRLICHT_VERSION_SVN alpha
#define IRRLICHT_SDK_VERSION "1.9.0" IRRLICHT_VERSION_MT

#if RENDER_HEADLESS // from https://github.com/EleutherAI/irrlicht
#define _IRR_COMPILE_WITH_SDL_DEVICE_
#endif

#include <stdio.h> // TODO: Although included elsewhere this is required at least for mingw

#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion source/Irrlicht/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ elseif(DEVICE STREQUAL "SDL")
message(FATAL_ERROR "SDL was used but not enabled?!")
endif()

add_definitions("-D_IRR_COMPILE_WITH_${DEVICE}_DEVICE_")
target_compile_definitions(IrrlichtMt PUBLIC "_IRR_COMPILE_WITH_${DEVICE}_DEVICE_")

# X11

Expand Down

0 comments on commit 3f3672b

Please sign in to comment.