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

-- 

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

Reply via email to