Skip to content
Snippets Groups Projects
Commit 94cdea84 authored by Martin Beseda's avatar Martin Beseda
Browse files

ENH: Added check of the unallowed characters in the repo path.

parent dfd52b15
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,14 @@ if(CMAKE_BUILD_TYPE MATCHES DEBUG)
set(CMAKE_VERBOSE_MAKEFILE ON)
endif()
#------------------------------------------------------------------------------------#
# Check, if the path to the current directory does contain some unallowed characters #
#------------------------------------------------------------------------------------#
string(REGEX MATCH "[A-Za-z0-9 \\\\/:_-]*" MATCH ${CMAKE_CURRENT_LIST_DIR})
if (NOT ${MATCH} STREQUAL ${CMAKE_CURRENT_LIST_DIR})
message(FATAL_ERROR "Illegal character(s) found in the path to the current directory!")
endif()
#-------------------------#
# Find external libraries #
#-------------------------#
......
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