aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Tissen <dravorek@gmail.com>2023-03-29 12:44:28 +0200
committerGitHub <noreply@github.com>2023-03-29 12:44:28 +0200
commite7c9ef8e52aec565530d9e69e81603d690419715 (patch)
tree43c5b14ba03aff8a34cb1141dabd80f562fc4c46
parenta22dc95311a79f07b68fdfeefe3b06eb793d3bc9 (diff)
downloadjansson-e7c9ef8e52aec565530d9e69e81603d690419715.zip
jansson-e7c9ef8e52aec565530d9e69e81603d690419715.tar.gz
jansson-e7c9ef8e52aec565530d9e69e81603d690419715.tar.bz2
Remove unused ${SOURCE_DIR}/include include path
The directory `${CMAKE_CURRENT_SOURCE_DIR}/include` is never created or used. Except in case of an in-source build but then `${CMAKE_CURRENT_BINARY_DIR}/include` would be the same, so it would only duplicate the correct entry. Not sure if the intermediary `JANSSON__INCLUDE_DIRS` is still necessary but I thought I'd change as little as possible. The reason for eliminating this is that when you use CLion and sync into a docker container it will try to copy all include dirs back. Non-existant paths cause warnings every time.
-rw-r--r--CMakeLists.txt4
1 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ed33e3c..8788afe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -602,9 +602,7 @@ foreach(p LIB BIN INCLUDE CMAKE)
endforeach()
# Generate the config file for the build-tree.
-set(JANSSON__INCLUDE_DIRS
- "${CMAKE_CURRENT_SOURCE_DIR}/include"
- "${CMAKE_CURRENT_BINARY_DIR}/include")
+set(JANSSON__INCLUDE_DIRS "${CMAKE_CURRENT_BINARY_DIR}/include")
set(JANSSON_INCLUDE_DIRS ${JANSSON__INCLUDE_DIRS} CACHE PATH "Jansson include directories")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/janssonConfig.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/janssonConfig.cmake