summaryrefslogtreecommitdiff
path: root/src/lib/openjpip
diff options
context:
space:
mode:
authorMatthieu Darbois <mayeut@users.noreply.github.com>2015-09-01 20:53:25 +0200
committerMatthieu Darbois <mayeut@users.noreply.github.com>2015-09-01 20:53:25 +0200
commit15d07f33d1e2bb588628eec204751d893ce92acd (patch)
tree5cf97453b38b77e1cbe7073f72121a7f6aa52b4b /src/lib/openjpip
parent2eb97a851d2ba41d64807a489d39b2976f701142 (diff)
parentc5dd6035c942ab5969b7dc3a873e95e3b542f544 (diff)
Merge pull request #572 from mayeut/master
Correct CMake version requirements
Diffstat (limited to 'src/lib/openjpip')
-rw-r--r--src/lib/openjpip/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/openjpip/CMakeLists.txt b/src/lib/openjpip/CMakeLists.txt
index 28e8259d..858a1095 100644
--- a/src/lib/openjpip/CMakeLists.txt
+++ b/src/lib/openjpip/CMakeLists.txt
@@ -61,7 +61,9 @@ endif()
add_library(openjpip ${OPENJPIP_SRCS} ${LOCAL_SRCS})
set_target_properties(openjpip
PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
-target_compile_options(openjpip PRIVATE ${OPENJPEG_LIBRARY_COMPILE_OPTIONS})
+if(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
+ target_compile_options(openjpip PRIVATE ${OPENJPEG_LIBRARY_COMPILE_OPTIONS})
+endif()
target_link_libraries(openjpip ${OPENJPEG_LIBRARY_NAME})
if(WIN32)
# add Winsock on windows+mingw