diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-10-22 10:41:44 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2012-10-22 10:41:44 +0000 |
| commit | f2808de8557ed56ef3a4206e6d2985566c178e28 (patch) | |
| tree | 7d07fabdbfc5ed208a4bb1f279b49ad260d06805 /CMakeLists.txt | |
| parent | 9b2897ccd983c1d03bcac7bc111f7fabe7ac99db (diff) | |
[trunk] Fix java binding installation
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index be5a6ae0..a6a7e03e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,6 +125,14 @@ if(NOT OPENJPEG_INSTALL_DOC_DIR) set(OPENJPEG_INSTALL_DOC_DIR "share/doc/${OPENJPEG_INSTALL_SUBDIR}") endif() +if(NOT OPENJPEG_INSTALL_JNI_DIR) + if(WIN32) + set(OPENJPEG_INSTALL_JNI_DIR ${OPENJPEG_INSTALL_BIN_DIR}) + else() + set(OPENJPEG_INSTALL_JNI_DIR ${OPENJPEG_INSTALL_LIB_DIR}) + endif() +endif() + if(NOT OPENJPEG_INSTALL_PACKAGE_DIR) # We could install *.cmake files in share/ however those files contains # hardcoded path to libraries on a multi-arch system (fedora/debian) those |
