summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-09-10 12:50:44 +0800
committerErik Kundiman <erik@megapahit.org>2023-09-10 12:50:44 +0800
commit0797257992ee7f88456d3083ebf214485b75c139 (patch)
tree92120f43a5d8e29c4ada170f709590dc9ba53fab
parent157410f867e9906d43f80235751778c134c330ab (diff)
Use prebuilt OpenJPEG for now
until we figure out what's causing crashes with vanilla OpenJPEG.
-rw-r--r--indra/cmake/OpenJPEG.cmake20
1 files changed, 10 insertions, 10 deletions
diff --git a/indra/cmake/OpenJPEG.cmake b/indra/cmake/OpenJPEG.cmake
index 3f86bfd025..83b959e140 100644
--- a/indra/cmake/OpenJPEG.cmake
+++ b/indra/cmake/OpenJPEG.cmake
@@ -4,17 +4,17 @@ include(Prebuilt)
include_guard()
add_library( ll::openjpeg INTERFACE IMPORTED )
-if (NOT (USE_AUTOBUILD_3P OR USE_CONAN))
- include(FindPkgConfig)
- pkg_check_modules(Openjpeg REQUIRED libopenjp2)
- target_include_directories(ll::openjpeg SYSTEM INTERFACE ${Openjpeg_INCLUDE_DIRS})
- target_link_directories(ll::openjpeg INTERFACE ${Openjpeg_LIBRARY_DIRS})
- target_link_libraries(ll::openjpeg INTERFACE ${Openjpeg_LIBRARIES})
- return ()
-endif ()
+#if (USESYSTEMLIBS)
+# include(FindPkgConfig)
+# pkg_check_modules(Openjpeg REQUIRED libopenjp2)
+# target_include_directories(ll::openjpeg SYSTEM INTERFACE ${Openjpeg_INCLUDE_DIRS})
+# target_link_directories(ll::openjpeg INTERFACE ${Openjpeg_LIBRARY_DIRS})
+# target_link_libraries(ll::openjpeg INTERFACE ${Openjpeg_LIBRARIES})
+# return ()
+#endif ()
-use_system_binary(openjpeg)
-use_prebuilt_binary(openjpeg)
+#use_system_binary(openjpeg)
+#use_prebuilt_binary(openjpeg)
target_link_libraries(ll::openjpeg INTERFACE openjp2 )
target_include_directories( ll::openjpeg SYSTEM INTERFACE ${LIBS_PREBUILT_DIR}/include/openjpeg)