mirror of
https://github.com/libAthena/athena.git
synced 2025-07-12 08:05:56 +00:00
Set fmt defines in CMake
This commit is contained in:
parent
fc3e9a51d2
commit
a87e8bb39f
6
extern/CMakeLists.txt
vendored
6
extern/CMakeLists.txt
vendored
@ -6,4 +6,10 @@ add_subdirectory(zlib)
|
|||||||
add_subdirectory(yaml)
|
add_subdirectory(yaml)
|
||||||
if(NOT TARGET fmt)
|
if(NOT TARGET fmt)
|
||||||
add_subdirectory(fmt)
|
add_subdirectory(fmt)
|
||||||
|
target_compile_definitions(fmt PUBLIC
|
||||||
|
FMT_STRING_ALIAS=1
|
||||||
|
FMT_ARM_ABI_COMPATIBILITY=1
|
||||||
|
FMT_EXCEPTIONS=0)
|
||||||
|
target_compile_definitions(fmt INTERFACE
|
||||||
|
FMT_ENFORCE_COMPILE_STRING=1)
|
||||||
endif()
|
endif()
|
@ -3,8 +3,6 @@
|
|||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include "athena/Types.hpp"
|
#include "athena/Types.hpp"
|
||||||
|
|
||||||
#define FMT_STRING_ALIAS 1
|
|
||||||
#define FMT_ENFORCE_COMPILE_STRING 1
|
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
@ -1,13 +1,7 @@
|
|||||||
#include "athena/Global.hpp"
|
#include "athena/Global.hpp"
|
||||||
#include "athena/Utility.hpp"
|
#include "athena/Utility.hpp"
|
||||||
#include <cstdio>
|
|
||||||
#include <cstdlib>
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define FMT_STRING_ALIAS 1
|
|
||||||
#define FMT_ENFORCE_COMPILE_STRING 1
|
|
||||||
#include <fmt/format.h>
|
|
||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const athena::SeekOrigin& origin) {
|
std::ostream& operator<<(std::ostream& os, const athena::SeekOrigin& origin) {
|
||||||
switch (origin) {
|
switch (origin) {
|
||||||
case athena::SeekOrigin::Begin:
|
case athena::SeekOrigin::Begin:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user