Browse Source

Add target include dirs for static library as well

tags/json-c-0.16-20220414
Robert Bielik 3 years ago
parent
commit
21f767f63f
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      CMakeLists.txt

+ 5
- 0
CMakeLists.txt 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)


Loading…
Cancel
Save