summaryrefslogtreecommitdiff
path: root/indra/cmake/GLOD.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/GLOD.cmake')
-rw-r--r--indra/cmake/GLOD.cmake11
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/cmake/GLOD.cmake b/indra/cmake/GLOD.cmake
index 6f42b44ab8..8d41db4ea3 100644
--- a/indra/cmake/GLOD.cmake
+++ b/indra/cmake/GLOD.cmake
@@ -1,11 +1,18 @@
# -*- cmake -*-
include(Prebuilt)
+if( TARGET glod::glod )
+ return()
+endif()
+create_target( glod::glod )
+
if (NOT USESYSTEMLIBS)
use_prebuilt_binary(glod)
endif (NOT USESYSTEMLIBS)
+
+
set(GLODLIB ON CACHE BOOL "Using GLOD library")
-set(GLOD_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include)
-set(GLOD_LIBRARIES GLOD)
+set_target_include_dirs( glod::glod ${LIBS_PREBUILT_DIR}/include)
+set_target_libraries( glod::glod GLOD )