fix wrong method to specify SYSTEM in target_include_directories

This commit is contained in:
falsycat 2022-11-24 15:09:51 +09:00
parent fce36b2c8f
commit a9345da3c4
2 changed files with 9 additions and 3 deletions

View File

@ -216,7 +216,10 @@ FetchContent_Declare(
magic_enum
URL "https://github.com/Neargye/magic_enum/archive/refs/tags/v0.8.1.zip"
)
FetchContent_MakeAvailable(magic_enum)
FetchContent_Populate(magic_enum)
add_library(magic_enum INTERFACE)
target_include_directories(magic_enum SYSTEM INTERFACE ${magic_enum_SOURCE_DIR}/include)
# ---- miniaudio ----
@ -230,7 +233,7 @@ FetchContent_Declare(
FetchContent_Populate(miniaudio)
add_library(miniaudio)
target_include_directories(miniaudio PUBLIC SYSTEM ${miniaudio_SOURCE_DIR})
target_include_directories(miniaudio SYSTEM PUBLIC ${miniaudio_SOURCE_DIR})
target_sources(miniaudio
PUBLIC
"${miniaudio_SOURCE_DIR}/miniaudio.h"
@ -255,7 +258,7 @@ FetchContent_Declare(
FetchContent_Populate(stb)
add_library(stb)
target_include_directories(stb PUBLIC SYSTEM ${stb_SOURCE_DIR})
target_include_directories(stb SYSTEM PUBLIC ${stb_SOURCE_DIR})
target_sources(stb
PUBLIC
${stb_SOURCE_DIR}/stb_image.h

View File

@ -11,6 +11,9 @@ if (UNIX)
VERBATIM
)
# To enable assertions, add the following options:
# XCFLAGS="-DLUA_USE_APICHECK -DLUA_USE_ASSERT -Og -g"
elseif (MINGW)
find_program(MAKE mingw32-make REQUIRED)