[PATCH 5 of 6] Add fallback when CMAKE_STRIP is not found and warn about it

Wald Commits scm-commit at wald.intevation.org
Thu Aug 28 12:57:43 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1409223438 -7200
# Node ID 9494d4ee1d4e6d1e54ebc2d2075a12fdbd8aebba
# Parent  9783e32e215fe9a2dce4287ff72ccd019c8da3c6
Add fallback when CMAKE_STRIP is not found and warn about it

diff -r 9783e32e215f -r 9494d4ee1d4e ui/tests/CMakeLists.txt
--- a/ui/tests/CMakeLists.txt	Thu Aug 28 12:56:56 2014 +0200
+++ b/ui/tests/CMakeLists.txt	Thu Aug 28 12:57:18 2014 +0200
@@ -77,6 +77,11 @@
 if (WIN32)
    add_custom_test(windowsstoretest.cpp "${CMAKE_SOURCE_DIR}/cinst/windowsstore.c")
 
+   if (NOT "${CMAKE_STRIP}")
+      message(STATUS "WARNING CMAKE_STRIP not set. Please set this in your toolchain file. Falling back to: i686-w64-mingw32-strip")
+      set (CMAKE_STRIP "i686-w64-mingw32-strip")
+   endif()
+
    if (OSSLSIGNCODE_EXECUTABLE)
       add_custom_test (binverifytest.cpp "")
       add_custom_command(


More information about the Trustbridge-commits mailing list