Commit 169e76dd authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: fix detection of project name

parent 1018b42e
......@@ -5,7 +5,7 @@ set (ENV{LANG} "C") # Only ascii output
# Get project name
file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" _project_match REGEX "^project *\\(")
string(REGEX REPLACE "^project *\\( *([a-zA-Z0-9]+)" "\\1" otb-module ${_project_match})
string(REGEX REPLACE "^project *\\( *([a-zA-Z0-9]+) *\\)" "\\1" otb-module ${_project_match})
# Build Configuration : Release, Debug..
if(ci_build_type)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment