diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ab69048e205..f8fe1a234cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -571,7 +571,7 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") endif() if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang") - option(WITH_COMPILER_SHORT_FILE_MACRO "Make paths in macros like __FILE__ relative to top level source and build directories." OFF) + option(WITH_COMPILER_SHORT_FILE_MACRO "Make paths in macros like __FILE__ relative to top level source and build directories." ON) mark_as_advanced(WITH_COMPILER_SHORT_FILE_MACRO) endif() @@ -1679,8 +1679,8 @@ if(WITH_COMPILER_SHORT_FILE_MACRO) endif() if(WITH_COMPILER_SHORT_FILE_MACRO) set(PLATFORM_CFLAGS "${PLATFORM_CFLAGS} \ --fmacro-prefix-map=\"${CMAKE_SOURCE_DIR}/\"=\"\" \ --fmacro-prefix-map=\"${CMAKE_BINARY_DIR}/\"=\"\"" +-fmacro-prefix-map='${CMAKE_SOURCE_DIR}/'='' \ +-fmacro-prefix-map='${CMAKE_BINARY_DIR}/'=''" ) endif() else() |