From: Robert Bielik Date: Wed, 10 Nov 2021 15:04:01 +0000 (+0100) Subject: Add target include dirs for static library as well X-Git-Tag: json-c-0.16-20220414~29^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21f767f63fe4b32ca5607c5530dc6db0d23b6174;p=json-c Add target include dirs for static library as well --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 23c6eef..29a8bd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 + $ + $ + ) # rename the static library if (NOT MSVC)