fix compiling

compiling was broken due to some spdlog warnings being treated as errors incorrectly
This commit is contained in:
rexx 2023-05-15 20:16:58 +01:00
parent 0dc2e110a6
commit 14e19f38ef
2 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,9 @@
#include "thirdparty/imgui/backends/imgui_impl_win32.h"
#endif // !DEDICATED && !NETCONSOLE && !PLUGINSDK
#pragma warning(push)
#pragma warning( disable : 4505 )
#include "thirdparty/spdlog/spdlog.h"
#include "thirdparty/spdlog/async.h"
#include "thirdparty/spdlog/sinks/ostream_sink.h"
@ -34,6 +37,7 @@
#include "thirdparty/spdlog/sinks/stdout_color_sinks.h"
#include "thirdparty/spdlog/sinks/ansicolor_sink.h"
#include "thirdparty/spdlog/sinks/rotating_file_sink.h"
#pragma warning(pop)
// Tier0 includes.
#include "tier0/utility.h"

View File

@ -36,4 +36,5 @@ add_sources( SOURCE_GROUP "Misc"
)
end_sources()
thirdparty_suppress_warnings()
target_compile_definitions( ${PROJECT_NAME} PRIVATE BUILDING_LIBIMGUI )