Fix path issues when imported as subdirectory

This commit is contained in:
sfan5
2021-06-30 21:13:59 +02:00
parent 924178ebf6
commit d62e0424f2
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ find_package(PNG REQUIRED)
# To configure the features available in this Irrlicht build please edit
# include/IrrCompileConfig.h and re-run CMake from a clean state
include(CheckSymbolExists)
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_SOURCE_DIR}/include)
set(CMAKE_REQUIRED_INCLUDES ${PROJECT_SOURCE_DIR}/include)
unset(OGLES1_ENABLED CACHE)
unset(OGLES2_ENABLED CACHE)
unset(OGL_ENABLED CACHE)