Skip to content

Commit

Permalink
Use distinct #define for hdr loc
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed May 12, 2021
1 parent 6437a77 commit 6d5fcf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ if (VCPKG_TOOLCHAIN)
message("INFO: Using VCPKG for DirectX-Headers.")
find_package(directx-headers CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE Microsoft::DirectX-Headers)
target_compile_definitions(${PROJECT_NAME} PRIVATE USING_D3D12_AGILITY_SDK)
target_compile_definitions(${PROJECT_NAME} PRIVATE USING_DIRECTX_HEADERS USING_D3D12_AGILITY_SDK)
endif()

if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
Expand Down
2 changes: 1 addition & 1 deletion dxgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//-----------------------------------------------------------------------------
#include "dxview.h"

#ifdef USING_D3D12_AGILITY_SDK
#ifdef USING_DIRECTX_HEADERS
#include <directx/dxgiformat.h>
#include <directx/d3d12.h>
#else
Expand Down

0 comments on commit 6d5fcf8

Please sign in to comment.