summaryrefslogtreecommitdiff
path: root/indra/cmake/JPEG.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/JPEG.cmake')
-rw-r--r--indra/cmake/JPEG.cmake14
1 files changed, 6 insertions, 8 deletions
diff --git a/indra/cmake/JPEG.cmake b/indra/cmake/JPEG.cmake
index d3bec7901f..e6ff4b7b72 100644
--- a/indra/cmake/JPEG.cmake
+++ b/indra/cmake/JPEG.cmake
@@ -3,17 +3,15 @@ include(Prebuilt)
include(Linking)
-if( TARGET jpeglib::jpeglib )
- return()
-endif()
-create_target(jpeglib::jpeglib)
+include_guard()
+create_target(ll::jpeglib)
use_prebuilt_binary(jpeglib)
if (LINUX)
- set_target_libraries( jpeglib::jpeglib jpeg)
+ set_target_libraries( ll::jpeglib jpeg)
elseif (DARWIN)
- set_target_libraries( jpeglib::jpeglib jpeg)
+ set_target_libraries( ll::jpeglib jpeg)
elseif (WINDOWS)
- set_target_libraries( jpeglib::jpeglib jpeglib)
+ set_target_libraries( ll::jpeglib jpeglib)
endif (LINUX)
-set_target_include_dirs( jpeglib::jpeglib ${LIBS_PREBUILT_DIR}/include)
+set_target_include_dirs( ll::jpeglib ${LIBS_PREBUILT_DIR}/include)