Fix exported target include directories

This commit is contained in:
Todor Prokopov 2022-12-19 18:35:16 +02:00
parent 2d2b221306
commit b0db61efe1

View File

@ -46,12 +46,12 @@ function(zint_target_compile_definitions scope definition)
endif() endif()
endfunction() endfunction()
function(zint_target_include_directories scope directory) function(zint_target_include_directories)
if(ZINT_SHARED) if(ZINT_SHARED)
target_include_directories(zint ${scope} ${directory}) target_include_directories(zint ${ARGN})
endif() endif()
if(ZINT_STATIC) if(ZINT_STATIC)
target_include_directories(zint-static ${scope} ${directory}) target_include_directories(zint-static ${ARGN})
endif() endif()
endfunction() endfunction()