From 019ed485b661f4c0acfb681f6b5a40166919b516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= Date: Mon, 20 Apr 2020 05:28:48 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e156e56..d1a780f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -299,7 +299,6 @@ if ($ENV{VALGRIND}) endif() set(JSON_C_PUBLIC_HEADERS - ${PROJECT_BINARY_DIR}/config.h ${PROJECT_BINARY_DIR}/json_config.h ${PROJECT_SOURCE_DIR}/json.h @@ -320,6 +319,7 @@ set(JSON_C_PUBLIC_HEADERS set(JSON_C_HEADERS ${JSON_C_PUBLIC_HEADERS} + ${PROJECT_BINARY_DIR}/config.h ${PROJECT_SOURCE_DIR}/json_object_private.h ${PROJECT_SOURCE_DIR}/random_seed.h ${PROJECT_SOURCE_DIR}/strerror_override.h