[CMake] MSYS Makefiles generator problem with install/strip

Hendrik Sattler post at hendrik-sattler.de
Thu Jun 2 13:16:10 EDT 2016


Hi,

Are you using absolute paths in your install() commands? You better don't.

HS


Am 2. Juni 2016 16:25:33 MESZ, schrieb Robert Bielik <Robert.Bielik at dirac.com>:
>Hi,
>
>I have a problem with the install/strip target not working when using
>the MSYS Makefiles generator. I get the following result in
>cmake_install.cmake:
>
>file(INSTALL DESTINATION
>"c:/Dev/appAndroid/idrclib/src/main/jniLibs/armeabi-v7a" TYPE
>SHARED_LIBRARY FILES "C:/Dev/jniAndroid/libapi_native.so")
>if(EXISTS
>"$ENV{DESTDIR}/c:/Dev/appAndroid/idrclib/src/main/jniLibs/armeabi-v7a/libapi_native.so
>" AND
>NOT IS_SYMLINK
>"$ENV{DESTDIR}/c:/Dev/appAndroid/idrclib/src/main/jniLibs/armeabi-v7a/libapi_native.so")
>    if(CMAKE_INSTALL_DO_STRIP)
>execute_process(COMMAND
>"C:/android/android-ndk-r11c/standalone/arm/bin/arm-linux-androideabi-strip.exe"
>"$ENV{DESTDIR}/c:/Dev/appAndroid/idrclib/src/main/jniLibs/armeabi-v7a/libapi_native.so")
>    endif()
>  endif()
>endif()
>
>The above should instead look like:
>
>file(INSTALL DESTINATION
>"c:/Dev/appAndroid/idrclib/src/main/jniLibs/armeabi-v7a" TYPE
>SHARED_LIBRARY FILES "C:/Dev/jniAndroid/libapi_native.so")
>if(EXISTS
>"c:/Dev/appAndroid/idrclib/src/main/jniLibs/armeabi-v7a/libapi_native.so"
>AND
>NOT IS_SYMLINK
>"c:/Dev/appAndroid/idrclib/src/main/jniLibs/armeabi-v7a/libapi_native.so")
>    if(CMAKE_INSTALL_DO_STRIP)
>execute_process(COMMAND
>"C:/android/android-ndk-r11c/standalone/arm/bin/arm-linux-androideabi-strip.exe"
>"c:/Dev/appAndroid/idrclib/src/main/jniLibs/armeabi-v7a/libapi_native.so")
>    endif()
>  endif()
>endif()
>
>Then the install/strip target works.
>
>Regards
>/Robert

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.


More information about the CMake mailing list