CMake: Use -ffile-prefix-map to trim build directory from debug output
This commit is contained in:
@@ -92,6 +92,8 @@ macro(compile_flags)
|
|||||||
# break anything. So disable strict-aliasing to make the
|
# break anything. So disable strict-aliasing to make the
|
||||||
# compiler all happy.
|
# compiler all happy.
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
|
|
||||||
|
"-ffile-prefix-map=${CMAKE_SOURCE_DIR}/=/"
|
||||||
)
|
)
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE)
|
if(NOT CMAKE_BUILD_TYPE)
|
||||||
|
Reference in New Issue
Block a user