summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/CMakeLists.txt
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-05-23 15:12:19 +0200
committerEven Rouault <even.rouault@spatialys.com>2017-05-23 15:47:57 +0200
commita8ca7c51f38a4cbdcb4a541137478df03e5eb76d (patch)
treef5b9b8aca95f11a51c37386c9bd2917606140550 /src/lib/openjp2/CMakeLists.txt
parent6e97d877b155aff55d1ae1fef4a36fa56d51e472 (diff)
CMake: add stronger warnings for openjp2 lib/bin by default, and error out on declaration-after-statement
And remove occurences of unused arguments in src/lib/openjp2
Diffstat (limited to 'src/lib/openjp2/CMakeLists.txt')
-rw-r--r--src/lib/openjp2/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/openjp2/CMakeLists.txt b/src/lib/openjp2/CMakeLists.txt
index af394f6b..cfc49028 100644
--- a/src/lib/openjp2/CMakeLists.txt
+++ b/src/lib/openjp2/CMakeLists.txt
@@ -95,7 +95,7 @@ if(UNIX)
endif()
set_target_properties(${OPENJPEG_LIBRARY_NAME} PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
if(${CMAKE_VERSION} VERSION_GREATER "2.8.11")
- target_compile_options(${OPENJPEG_LIBRARY_NAME} PRIVATE ${OPENJPEG_LIBRARY_COMPILE_OPTIONS})
+ target_compile_options(${OPENJPEG_LIBRARY_NAME} PRIVATE ${OPENJP2_COMPILE_OPTIONS})
endif()
# Install library