diff options
| author | Dominik Wójt <domin144@o2.pl> | 2024-01-08 18:07:04 +0100 |
|---|---|---|
| committer | Dominik Wójt <domin144@o2.pl> | 2024-01-08 18:13:14 +0100 |
| commit | 65d0326e5ac8db97314e1c211a20183f939bebb5 (patch) | |
| tree | 2e4328dd3a3c28e35c553be782094c041439ecc3 /src/bin | |
| parent | 406e1840ffbddacec1eeb58ca445f59441314e61 (diff) | |
CMake: drop support for cmake < 3.5
Compatibility for cmake version < 3.5 is now deprecated in cmake and
specifing version below 3.5 in cmake_minimum_required produces a
warning.[1]
[1] https://cmake.org/cmake/help/latest/release/3.27.html#deprecated-and-removed-features
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/jp2/CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/jp2/CMakeLists.txt b/src/bin/jp2/CMakeLists.txt index 29b4dd20..26156bcb 100644 --- a/src/bin/jp2/CMakeLists.txt +++ b/src/bin/jp2/CMakeLists.txt @@ -44,9 +44,7 @@ endif() # Loop over all executables: foreach(exe opj_decompress opj_compress opj_dump) add_executable(${exe} ${exe}.c ${common_SRCS}) - if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12") - target_compile_options(${exe} PRIVATE ${OPENJP2_COMPILE_OPTIONS}) - endif() + target_compile_options(${exe} PRIVATE ${OPENJP2_COMPILE_OPTIONS}) target_link_libraries(${exe} ${OPENJPEG_LIBRARY_NAME} ${PNG_LIBNAME} ${TIFF_LIBNAME} ${LCMS_LIBNAME} ) |
