Commit 1018b42e authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

CI: detect project name

parent 9d1abf1e
......@@ -3,9 +3,9 @@
set(REMOTE_MODULE_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
set (ENV{LANG} "C") # Only ascii output
# Get module name
file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/otb-module.cmake" _module_match REGEX "otb_module *\\(")
string(REGEX REPLACE "otb_module *\\( *([a-zA-Z0-9]+)" "\\1" otb-module ${_module_match})
# 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})
# Build Configuration : Release, Debug..
if(ci_build_type)
......
Markdown is supported
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