Add target include dirs for static library as well

This commit is contained in:
Robert Bielik
2021-11-10 16:04:01 +01:00
parent 9b0fb2b33e
commit 21f767f63f

View File

@@ -472,6 +472,11 @@ if (BUILD_STATIC_LIBS AND BUILD_SHARED_LIBS)
${JSON_C_SOURCES}
${JSON_C_HEADERS}
)
target_include_directories(${PROJECT_NAME}-static
PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}>
)
# rename the static library
if (NOT MSVC)