From: Arnaud Giersch Date: Mon, 12 Oct 2020 07:37:58 +0000 (+0200) Subject: Protect spaces in path. X-Git-Tag: v3.26~318 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5f25905dcf3c108a11741fdd2b8515674d6ca0a2 Protect spaces in path. --- diff --git a/tools/cmake/Flags.cmake b/tools/cmake/Flags.cmake index 4cf24372c2..3e92f6061a 100644 --- a/tools/cmake/Flags.cmake +++ b/tools/cmake/Flags.cmake @@ -100,9 +100,9 @@ if(CMAKE_COMPILER_IS_GNUCC) set(RELATIVE_SOURCE_DIR ".") endif() if (CMAKE_C_COMPILER_VERSION VERSION_LESS "8.0") - set(optCFLAGS "${optCFLAGS} -fdebug-prefix-map=${CMAKE_SOURCE_DIR}=${RELATIVE_SOURCE_DIR}") + set(optCFLAGS "${optCFLAGS} -fdebug-prefix-map=\"${CMAKE_SOURCE_DIR}=${RELATIVE_SOURCE_DIR}\"") else() - set(optCFLAGS "${optCFLAGS} -ffile-prefix-map=${CMAKE_SOURCE_DIR}=${RELATIVE_SOURCE_DIR}") + set(optCFLAGS "${optCFLAGS} -ffile-prefix-map=\"${CMAKE_SOURCE_DIR}=${RELATIVE_SOURCE_DIR}\"") endif() endif()