diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-08-14 22:27:23 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-08-14 22:27:23 +0800 |
commit | 99f771e1ce4d50a8aff39c79c82d699570d5da67 (patch) | |
tree | 4dde5302c15dbbcf50fe1554b0320cf244738a92 /indra/cmake/OpenJPEG.cmake | |
parent | d831010b59d83fccc64d00c48d13447bfcbb7bcd (diff) |
Rename openjpeg to openjpeg-2.5 if no openjpeg-2.5
instead of if there's openjpeg.
Diffstat (limited to 'indra/cmake/OpenJPEG.cmake')
-rw-r--r-- | indra/cmake/OpenJPEG.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/cmake/OpenJPEG.cmake b/indra/cmake/OpenJPEG.cmake index d2c9d95c9b..579fd87a45 100644 --- a/indra/cmake/OpenJPEG.cmake +++ b/indra/cmake/OpenJPEG.cmake @@ -43,12 +43,12 @@ if (USESYSTEMLIBS AND (${LINUX_DISTRO} MATCHES fedora OR DARWIN OR CMAKE_SYSTEM_ endif (${PREBUILD_TRACKING_DIR}/sentinel_installed IS_NEWER_THAN ${PREBUILD_TRACKING_DIR}/openjpeg_installed OR NOT ${openjpeg_installed} EQUAL 0) else (USESYSTEMLIBS AND (${LINUX_DISTRO} MATCHES fedora OR DARWIN OR CMAKE_SYSTEM_NAME MATCHES FreeBSD)) use_prebuilt_binary(openjpeg) - if (EXISTS ${LIBS_PREBUILT_DIR}/include/openjpeg) + if (NOT EXISTS ${LIBS_PREBUILT_DIR}/include/openjpeg-2.5) file(RENAME ${LIBS_PREBUILT_DIR}/include/openjpeg ${LIBS_PREBUILT_DIR}/include/openjpeg-2.5 ) - endif (EXISTS ${LIBS_PREBUILT_DIR}/include/openjpeg) + endif (NOT EXISTS ${LIBS_PREBUILT_DIR}/include/openjpeg-2.5) target_link_libraries(ll::openjpeg INTERFACE openjp2 ) endif (USESYSTEMLIBS AND (${LINUX_DISTRO} MATCHES fedora OR DARWIN OR CMAKE_SYSTEM_NAME MATCHES FreeBSD)) |