Hi Hendrik,
I think I do, yes. Would this not be a normal use case, specifically on Linux, where the bin library would be /usr/bin? How would that work with relative paths? I think it would be a bug if install cannot handle arbitrary paths. I'll try though to see if I can work around this... behavior... Regards /R Skickat från min LG-Mobil ------ Ursprungligt meddelande------ Från: Hendrik Sattler Datum: tors, 2 jun 2016 19:16 Till: Robert Bielik;cmake@cmake.org; Ämne:Re: [CMake] MSYS Makefiles generator problem with install/strip 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.bie...@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.
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake