1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 06:04:31 +00:00

Don't treat the repo root as a system include directory

This is a regression from 99ba45a308 (9a2aa4db38d3115ed60da621e012c0efc0172aae_322_319), and caused many of our headers not to generate warnings.

It also combined with MSVC bug https://developercommunity.visualstudio.com/t/Including-a-header-with-pragma-system_h/10968424?port=1025&fsid=327e3050-e79a-41b0-8237-b262a60103e3 to prevent warnings in any TU that includes a CMake-generated precompiled header.
This commit is contained in:
AnyOldName3 2025-09-17 19:02:51 +01:00
parent fbb726cee0
commit 7520e86ab3

View file

@ -481,8 +481,8 @@ set(SOL_INCLUDE_DIR ${OpenMW_SOURCE_DIR}/extern/sol3)
set(SOL_CONFIG_DIR ${OpenMW_SOURCE_DIR}/extern/sol_config)
include_directories(
BEFORE SYSTEM
"."
BEFORE SYSTEM
${MyGUI_INCLUDE_DIRS}
${OPENAL_INCLUDE_DIR}
${OPENGL_INCLUDE_DIR}