Skip to content

Commit 4c61555

Browse files
committed
Check exit code of excludelist command in CMake
1 parent 413f52a commit 4c61555

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/linuxdeployqt/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ execute_process(
1313
COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/../excludelist.sh
1414
OUTPUT_VARIABLE EXCLUDELIST
1515
TIMEOUT 10
16+
RESULT_VARIABLE EXCLUDELIST_RESULT
1617
)
18+
if(NOT EXCLUDELIST_RESULT EQUAL 0)
19+
message(FATAL_ERROR "Failed to fetch and generate excludelist")
20+
endif()
21+
mark_as_advanced(EXCLUDELIST EXCLUDELIST_RESULT)
1722

1823
add_executable(linuxdeployqt main.cpp shared.cpp)
1924
target_include_directories(linuxdeployqt PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

0 commit comments

Comments
 (0)