summaryrefslogtreecommitdiff
path: root/src/lib/openmj2
diff options
context:
space:
mode:
authorAndrew Murray <radarhere@users.noreply.github.com>2017-11-14 21:45:09 +1100
committerAndrew Murray <radarhere@users.noreply.github.com>2017-11-14 21:45:09 +1100
commit157a3d840884abe5020b1a8b94576a7447063385 (patch)
tree1d33513815703e131212f4469964a1571759096a /src/lib/openmj2
parentd9f8f7ba9a51732eda9017cea6493cc86a62c7ef (diff)
Changed cmake version test to allow for cmake 2.8.11.x
Diffstat (limited to 'src/lib/openmj2')
-rw-r--r--src/lib/openmj2/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openmj2/CMakeLists.txt b/src/lib/openmj2/CMakeLists.txt
index 2ee1764b..25294b20 100644
--- a/src/lib/openmj2/CMakeLists.txt
+++ b/src/lib/openmj2/CMakeLists.txt
@@ -46,7 +46,7 @@ if(UNIX)
target_link_libraries(${OPENMJ2_LIBRARY_NAME} m)
endif()
set_target_properties(${OPENMJ2_LIBRARY_NAME} PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
-if(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
+if(NOT ${CMAKE_VERSION} VERSION_LESS "2.8.12")
target_compile_options(${OPENMJ2_LIBRARY_NAME} PRIVATE ${OPENJPEG_LIBRARY_COMPILE_OPTIONS})
endif()