diff --git a/CMakeLists.txt b/CMakeLists.txt index ec26d0b7..f2c279cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -312,6 +312,7 @@ endif() if(MINGW OR (NOT WIN32)) find_package(directxmath CONFIG REQUIRED) find_package(directx-headers CONFIG REQUIRED) + target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS) else() find_package(directxmath CONFIG QUIET) find_package(directx-headers CONFIG QUIET)