From 4c615555bfa15bfaf7f6e0a3316a908f7809a81c Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Thu, 12 Apr 2018 02:08:12 +0200 Subject: [PATCH] Check exit code of excludelist command in CMake --- tools/linuxdeployqt/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/linuxdeployqt/CMakeLists.txt b/tools/linuxdeployqt/CMakeLists.txt index 1770f64..01c658d 100644 --- a/tools/linuxdeployqt/CMakeLists.txt +++ b/tools/linuxdeployqt/CMakeLists.txt @@ -13,7 +13,12 @@ execute_process( COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/../excludelist.sh OUTPUT_VARIABLE EXCLUDELIST TIMEOUT 10 + RESULT_VARIABLE EXCLUDELIST_RESULT ) +if(NOT EXCLUDELIST_RESULT EQUAL 0) + message(FATAL_ERROR "Failed to fetch and generate excludelist") +endif() +mark_as_advanced(EXCLUDELIST EXCLUDELIST_RESULT) add_executable(linuxdeployqt main.cpp shared.cpp) target_include_directories(linuxdeployqt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})