Skip to content

Commit 66603e5

Browse files
committed
CMake Inspectr refSpectra add install error check
1 parent 9df316c commit 66603e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/InSpectr/enabled.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,9 @@ install(CODE "
77
execute_process(COMMAND \"${CMAKE_COMMAND}\"
88
\"-DSPECTRA_ARCHIVE=${SPECTRA_ARCHIVE}\" \"-DTARGET_DIR=\${CMAKE_INSTALL_PREFIX}/refSpectra\"
99
-P \"${CMAKE_CURRENT_SOURCE_DIR}/InSpectr/extractSpectra.cmake\"
10+
RESULT_VARIABLE return
1011
)
12+
if(return AND NOT return EQUAL 0)
13+
message(\"InSpectr: refSpectra folder installation failed (\${return})!\")
14+
endif()
1115
")

0 commit comments

Comments
 (0)