From 21f767f63fe4b32ca5607c5530dc6db0d23b6174 Mon Sep 17 00:00:00 2001 From: Robert Bielik Date: Wed, 10 Nov 2021 16:04:01 +0100 Subject: [PATCH] Add target include dirs for static library as well --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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) -- 2.40.0