diff options
author | Dave Parks <davep@lindenlab.com> | 2023-03-31 11:57:48 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-03-31 11:57:48 -0500 |
commit | 7d144fcb2a1b0aff1b59e378c652649c3d03e94f (patch) | |
tree | de3bfe3ce90677cc4d7ab25b8aeaf5853c009068 /indra/cmake/JPEG.cmake | |
parent | 0fe09bd968b987605123e99efb2fa040a988a942 (diff) | |
parent | e4173ea5cc1ef9b1677ac87a0f7c8acbe73414ee (diff) |
Merge branch 'DRTVWR-559' of github.com:secondlife/viewer into DRTVWR-559
Diffstat (limited to 'indra/cmake/JPEG.cmake')
-rw-r--r-- | indra/cmake/JPEG.cmake | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/indra/cmake/JPEG.cmake b/indra/cmake/JPEG.cmake index d6da22aecc..252d7852d4 100644 --- a/indra/cmake/JPEG.cmake +++ b/indra/cmake/JPEG.cmake @@ -2,19 +2,17 @@ include(Prebuilt) include(Linking) -set(JPEG_FIND_QUIETLY ON) -set(JPEG_FIND_REQUIRED ON) -if (USESYSTEMLIBS) - include(FindJPEG) -else (USESYSTEMLIBS) - use_prebuilt_binary(jpeglib) - if (LINUX) - set(JPEG_LIBRARIES jpeg) - elseif (DARWIN) - set(JPEG_LIBRARIES jpeg) - elseif (WINDOWS) - set(JPEG_LIBRARIES jpeglib) - endif (LINUX) - set(JPEG_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include) -endif (USESYSTEMLIBS) +include_guard() +add_library( ll::libjpeg INTERFACE IMPORTED ) + +use_system_binary(libjpeg) +use_prebuilt_binary(jpeglib) +if (LINUX) + target_link_libraries( ll::libjpeg INTERFACE jpeg) +elseif (DARWIN) + target_link_libraries( ll::libjpeg INTERFACE jpeg) +elseif (WINDOWS) + target_link_libraries( ll::libjpeg INTERFACE jpeglib) +endif (LINUX) +target_include_directories( ll::libjpeg SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include) |