summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-08-22 13:53:34 +0800
committerErik Kundiman <erik@megapahit.org>2023-08-22 13:53:34 +0800
commite24c3ed7d3baef9ea313a0f528075ef229257975 (patch)
tree551f87e3ddf7a11dbf05bf8cf77340f76b0e675b /indra/cmake
parent2a9bc5536330c169d43053fc7cad6311ec62c538 (diff)
Add sysroot to XMLRPC-EPI include path on Linux
Useful when cross compiling.
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/XmlRpcEpi.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/cmake/XmlRpcEpi.cmake b/indra/cmake/XmlRpcEpi.cmake
index ae2ed6a83f..337e4b8974 100644
--- a/indra/cmake/XmlRpcEpi.cmake
+++ b/indra/cmake/XmlRpcEpi.cmake
@@ -15,7 +15,8 @@ target_link_libraries(ll::xmlrpc-epi INTERFACE xmlrpc-epi )
if (USE_AUTOBUILD_3P OR USE_CONAN)
target_include_directories( ll::xmlrpc-epi SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include)
elseif (LINUX)
-target_include_directories( ll::xmlrpc-epi SYSTEM INTERFACE /usr/include/xmlrpc-epi)
+ target_include_directories( ll::xmlrpc-epi SYSTEM INTERFACE
+ ${CMAKE_SYSROOT}/usr/include/xmlrpc-epi)
elseif (DARWIN)
target_include_directories( ll::xmlrpc-epi SYSTEM INTERFACE /usr/local/include)
target_link_directories( ll::xmlrpc-epi SYSTEM INTERFACE /usr/local/lib)