summaryrefslogtreecommitdiff
path: root/indra/llcorehttp
diff options
context:
space:
mode:
authorNicky Dasmijn <nicky.dasmijn@posteo.nl>2022-09-21 07:45:38 +0000
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-09-21 07:45:38 +0000
commitbfe7cbb136ecea903e084d66e342b4fd623b85b8 (patch)
tree388ca6f23fdf1792de62fbf03c48f0ff3494440d /indra/llcorehttp
parenta441ce184fef3b30daff2b3eeef9db650b748ac9 (diff)
parentc903b0b03005831bce7b4001bbed55b275066679 (diff)
SL-17238 Merged in NickyD's cmake changes
Diffstat (limited to 'indra/llcorehttp')
-rw-r--r--indra/llcorehttp/CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/llcorehttp/CMakeLists.txt b/indra/llcorehttp/CMakeLists.txt
index 08139910d3..87796abd3c 100644
--- a/indra/llcorehttp/CMakeLists.txt
+++ b/indra/llcorehttp/CMakeLists.txt
@@ -14,8 +14,6 @@ include(LLCommon)
include(Tut)
include(bugsplat)
-include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../llmessage )
-
set(llcorehttp_SOURCE_FILES
bufferarray.cpp
bufferstream.cpp
@@ -89,8 +87,11 @@ target_link_libraries(
ll::openssl
ll::nghttp2
)
-target_include_directories( llcorehttp INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
-
+target_include_directories( llcorehttp INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
+# llmessage depends on llcorehttp, yet llcorehttp also depends on llmessage (at least for includes).
+# Cannot/Should not use target_link_libraries here to add llmessage to the dependencies, as that would
+# lead to circular dependencies (or in case of cmake, the first project declaring it's dependencies wins)
+target_include_directories( llcorehttp PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../llmessage)
# tests
set(LLCOREHTTP_TESTS ON CACHE BOOL