Browse Source

Use PROJECT_SOURCE_DIR instead of referencing the project name

pull/5721/head
staphen 3 years ago committed by Anders Jenbo
parent
commit
7f4d74e8f8
  1. 2
      CMake/functions/devilutionx_library.cmake

2
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})

Loading…
Cancel
Save