diff options
Diffstat (limited to 'indra/cmake/GLOD.cmake')
-rw-r--r-- | indra/cmake/GLOD.cmake | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/indra/cmake/GLOD.cmake b/indra/cmake/GLOD.cmake index 6f42b44ab8..61c0c166d4 100644 --- a/indra/cmake/GLOD.cmake +++ b/indra/cmake/GLOD.cmake @@ -1,11 +1,12 @@ # -*- cmake -*- include(Prebuilt) -if (NOT USESYSTEMLIBS) - use_prebuilt_binary(glod) -endif (NOT USESYSTEMLIBS) +include_guard() +add_library( ll::glod INTERFACE IMPORTED ) -set(GLODLIB ON CACHE BOOL "Using GLOD library") +use_conan_binary(glod) +use_prebuilt_binary(glod) -set(GLOD_INCLUDE_DIR ${LIBS_PREBUILT_DIR}/include) -set(GLOD_LIBRARIES GLOD) +target_include_directories( ll::glod SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include) +target_link_libraries( ll::glod INTERFACE GLOD ) +target_compile_definitions( ll::glod INTERFACE LL_GLOD=1)
\ No newline at end of file |