changeset 967:9494d4ee1d4e

Add fallback when CMAKE_STRIP is not found and warn about it
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 28 Aug 2014 12:57:18 +0200
parents 9783e32e215f
children 5e43b9a4e926
files ui/tests/CMakeLists.txt
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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(

http://wald.intevation.org/projects/trustbridge/