summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-18 02:50:43 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-18 02:50:43 +0200
commit1966d837e196f1ef043ee46666a9f661d6f54db1 (patch)
tree13395caafa80cde07b2f272c342bcca96b403502 /indra/cmake
parent363f2df4fa22b3eb95ff4603d73b7a042f3fefd1 (diff)
jsoncpp includepath should not include json/. jsoncpp includes a header "features.h"
which has the same name as a glibc header, allowing this header to be found without any prefix will lead to head conflicts when there is a '#include "features.h"' As a result all json headers need to be included via #include "json/reader.h"/"json/writer.h"
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/JsonCpp.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/cmake/JsonCpp.cmake b/indra/cmake/JsonCpp.cmake
index 0b6a82e576..e7f7c13134 100644
--- a/indra/cmake/JsonCpp.cmake
+++ b/indra/cmake/JsonCpp.cmake
@@ -12,4 +12,4 @@ elseif (DARWIN)
elseif (LINUX)
target_link_libraries( ll::jsoncpp INTERFACE libjson_linux-gcc-4.1.3_libmt.a )
endif (WINDOWS)
-target_include_directories( ll::jsoncpp SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/json)
+target_include_directories( ll::jsoncpp SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include)