From 7f4d74e8f8eb887098f5c0ed547004ced51988c0 Mon Sep 17 00:00:00 2001 From: staphen Date: Tue, 24 Jan 2023 13:37:23 -0500 Subject: [PATCH] Use PROJECT_SOURCE_DIR instead of referencing the project name --- CMake/functions/devilutionx_library.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/functions/devilutionx_library.cmake b/CMake/functions/devilutionx_library.cmake index 9ec696eac..0ba57e248 100644 --- a/CMake/functions/devilutionx_library.cmake +++ b/CMake/functions/devilutionx_library.cmake @@ -6,7 +6,7 @@ include(functions/set_relative_file_macro) function(add_devilutionx_library NAME) add_library(${NAME} ${ARGN}) - target_include_directories(${NAME} PUBLIC ${DevilutionX_SOURCE_DIR}/Source) + target_include_directories(${NAME} PUBLIC ${PROJECT_SOURCE_DIR}/Source) target_compile_definitions(${NAME} PUBLIC ${DEVILUTIONX_PLATFORM_COMPILE_DEFINITIONS}) target_compile_options(${NAME} PUBLIC ${DEVILUTIONX_PLATFORM_COMPILE_OPTIONS})