summaryrefslogtreecommitdiff
path: root/src/lib/openjpip
diff options
context:
space:
mode:
authormayeut <mayeut@users.noreply.github.com>2015-09-01 20:43:43 +0200
committermayeut <mayeut@users.noreply.github.com>2015-09-01 20:43:43 +0200
commitc5dd6035c942ab5969b7dc3a873e95e3b542f544 (patch)
tree5cf97453b38b77e1cbe7073f72121a7f6aa52b4b /src/lib/openjpip
parent2eb97a851d2ba41d64807a489d39b2976f701142 (diff)
Correct CMake version requirements
Update uclouvain/openjpeg#488
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