Browse Source

CMake: Do not install config.h, as it is not a public header file.

Installing this file will lead to clashes with applications, that
link against json-c and include their own build-time config.h.
Anyways, that particular header file is not needed to build and
link against json-c.
pull/585/head
Björn Esser 5 years ago
parent
commit
019ed485b6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      CMakeLists.txt

+ 1
- 1
CMakeLists.txt View File

@@ -299,7 +299,6 @@ if ($ENV{VALGRIND})
endif() endif()


set(JSON_C_PUBLIC_HEADERS set(JSON_C_PUBLIC_HEADERS
${PROJECT_BINARY_DIR}/config.h
${PROJECT_BINARY_DIR}/json_config.h ${PROJECT_BINARY_DIR}/json_config.h


${PROJECT_SOURCE_DIR}/json.h ${PROJECT_SOURCE_DIR}/json.h
@@ -320,6 +319,7 @@ set(JSON_C_PUBLIC_HEADERS


set(JSON_C_HEADERS set(JSON_C_HEADERS
${JSON_C_PUBLIC_HEADERS} ${JSON_C_PUBLIC_HEADERS}
${PROJECT_BINARY_DIR}/config.h
${PROJECT_SOURCE_DIR}/json_object_private.h ${PROJECT_SOURCE_DIR}/json_object_private.h
${PROJECT_SOURCE_DIR}/random_seed.h ${PROJECT_SOURCE_DIR}/random_seed.h
${PROJECT_SOURCE_DIR}/strerror_override.h ${PROJECT_SOURCE_DIR}/strerror_override.h


Loading…
Cancel
Save