Skip to content

Commit

Permalink
Fix for CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed May 10, 2022
1 parent 3b636c9 commit a745dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ endif()

add_library(${PROJECT_NAME} STATIC ${LIBRARY_SOURCES} ${LIBRARY_HEADERS})

target_include_directories(${PROJECT_NAME} PRIVATE ${COMPILED_SHADERS})
target_include_directories(${PROJECT_NAME} PRIVATE ${COMPILED_SHADERS} Src)

if ((${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16") AND (NOT MINGW))
target_precompile_headers(${PROJECT_NAME} PRIVATE Src/pch.h)
Expand All @@ -221,7 +221,7 @@ target_include_directories(${PROJECT_NAME} PUBLIC
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}>)

if(WINDOWS_STORE OR BUILD_XAUDIO_WIN10 OR BUILD_XAUDIO_REDIST)
target_include_directories(${PROJECT_NAME} PRIVATE Src Audio)
target_include_directories(${PROJECT_NAME} PRIVATE Audio)
endif()

if(MSVC)
Expand Down

0 comments on commit a745dde

Please sign in to comment.