Skip to content
Snippets Groups Projects
Commit 1c2031ed authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Added check for user-given process names.

parent 7ff2243c
No related branches found
No related tags found
No related merge requests found
...@@ -112,6 +112,12 @@ endforeach() ...@@ -112,6 +112,12 @@ endforeach()
set(OGS_BUILD_PROCESSES "" CACHE STRING "Semicolon-separated list of processes to build") set(OGS_BUILD_PROCESSES "" CACHE STRING "Semicolon-separated list of processes to build")
if(NOT "${OGS_BUILD_PROCESSES}" STREQUAL "") if(NOT "${OGS_BUILD_PROCESSES}" STREQUAL "")
foreach(process ${OGS_BUILD_PROCESSES})
if(NOT "${process}" IN_LIST ProcessesList)
message(FATAL_ERROR "${process} given in OGS_BUILD_PROCESSES is "
"not a valid process name! Valid names are ${ProcessesList}")
endif()
endforeach()
message(STATUS "Enabled processes:") message(STATUS "Enabled processes:")
foreach(process ${ProcessesList}) foreach(process ${ProcessesList})
if("${process}" IN_LIST OGS_BUILD_PROCESSES) if("${process}" IN_LIST OGS_BUILD_PROCESSES)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment