summaryrefslogtreecommitdiff
path: root/indra/cmake/Prebuilt.cmake
diff options
context:
space:
mode:
authorNicky <nicky.dasmijn@gmail.com>2022-04-18 18:11:43 +0200
committerNicky <nicky.dasmijn@gmail.com>2022-04-18 18:11:43 +0200
commit2b151e0aefd54671e1be504269f10318d303dccb (patch)
treec1527ef5d23bc946ac8dfcb907d2678a9a96db79 /indra/cmake/Prebuilt.cmake
parentdcfb94fbaca3c66ec02e6873cda53b4afd547beb (diff)
Round one to support conan for 3P packages, this allows to build the viewer on Linux again.
Diffstat (limited to 'indra/cmake/Prebuilt.cmake')
-rw-r--r--indra/cmake/Prebuilt.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/cmake/Prebuilt.cmake b/indra/cmake/Prebuilt.cmake
index f0192ec45b..542b4462e4 100644
--- a/indra/cmake/Prebuilt.cmake
+++ b/indra/cmake/Prebuilt.cmake
@@ -57,3 +57,16 @@ macro (use_prebuilt_binary _binary)
endif (NOT ${_binary}_installed EQUAL 0)
endmacro (use_prebuilt_binary _binary)
+#Sadly we need a macro here, otherwise the return() will not properly work
+macro ( use_conan_binary package )
+ if( USE_CONAN )
+ target_link_libraries( ll::${package} INTERFACE CONAN_PKG::${package} )
+ foreach( extra_pkg "${ARGN}" )
+ if( extra_pkg )
+ target_link_libraries( ll::${package} INTERFACE CONAN_PKG::${extra_pkg} )
+ endif()
+ endforeach()
+ return()
+ endif()
+endmacro()
+