summaryrefslogtreecommitdiff
path: root/indra/cmake/NGHTTP2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/NGHTTP2.cmake')
-rw-r--r--indra/cmake/NGHTTP2.cmake14
1 files changed, 6 insertions, 8 deletions
diff --git a/indra/cmake/NGHTTP2.cmake b/indra/cmake/NGHTTP2.cmake
index b1a0d33102..e92f0da2ef 100644
--- a/indra/cmake/NGHTTP2.cmake
+++ b/indra/cmake/NGHTTP2.cmake
@@ -1,16 +1,14 @@
include(Prebuilt)
-if( TARGET nghttp2::nghttp2 )
- return()
-endif()
-create_target( nghttp2::nghttp2 )
+include_guard()
+create_target( ll::nghttp2 )
use_prebuilt_binary(nghttp2)
if (WINDOWS)
- set_target_libraries( nghttp2::nghttp2 ${ARCH_PREBUILT_DIRS_RELEASE}/nghttp2.lib)
+ set_target_libraries( ll::nghttp2 ${ARCH_PREBUILT_DIRS_RELEASE}/nghttp2.lib)
elseif (DARWIN)
- set_target_libraries( nghttp2::nghttp2 libnghttp2.dylib)
+ set_target_libraries( ll::nghttp2 libnghttp2.dylib)
else (WINDOWS)
- set_target_libraries( nghttp2::nghttp2 libnghttp2.a )
+ set_target_libraries( ll::nghttp2 libnghttp2.a )
endif (WINDOWS)
-set_target_include_dirs( nghttp2::nghttp2 ${LIBS_PREBUILT_DIR}/include/nghttp2)
+set_target_include_dirs( ll::nghttp2 ${LIBS_PREBUILT_DIR}/include/nghttp2)