Skip to content

Commit

Permalink
Move FMT_USE_DOUBLE=0 to Dependencies.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
azihassan authored Oct 4, 2024
1 parent 8cdd31d commit b67003d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ endif()
dependency_options("libfmt" DEVILUTIONX_SYSTEM_LIBFMT ON DEVILUTIONX_STATIC_LIBFMT)
if(DEVILUTIONX_SYSTEM_LIBFMT)
find_package(fmt 8.0.0 REQUIRED)
target_compile_definitions(fmt PUBLIC FMT_USE_DOUBLE=0)
else()
add_subdirectory(3rdParty/libfmt)
target_compile_definitions(fmt PUBLIC FMT_USE_DOUBLE=0)
endif()

if(NOT NOSOUND)
Expand Down
3 changes: 1 addition & 2 deletions CMake/platforms/dreamcast.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,4 @@ set(JOY_BUTTON_START 3)
set(SDL_INCLUDE_DIR /usr/include/SDL/)
set(SDL_LIBRARY /usr/lib/libSDL.a)

set(FMT_USE_DOUBLE 0)
target_compile_definitions(fmt PUBLIC FMT_USE_DOUBLE=0)
set(FMT_USE_DOUBLE 0)

0 comments on commit b67003d

Please sign in to comment.