diff options
author | José Bollo <jose.bollo@iot.bzh> | 2019-09-10 18:10:43 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2019-09-10 18:10:43 +0200 |
commit | 58607718adf2cc921e9226fd2cde8caedc5ccef9 (patch) | |
tree | e577868ed8ace2f647a52a998eb1cf5a7b27f780 /CMakeLists.txt | |
parent | 66d7f743af1d362cfffcf14a39e524030445289c (diff) |
Add file-prefix-map option
Change-Id: I275e60cad74074cada35755a464da85c3d821e92
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ce870ab..c96027b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,7 @@ add_compile_options(-ffunction-sections -fdata-sections) add_compile_options(-fPIC) add_compile_options(-g) add_compile_options(-fstack-protector -D_FORTIFY_SOURCE=2 -O2) +add_compile_options(-ffile-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}=.) set(CMAKE_C_FLAGS_PROFILING "-g -O2 -pg") set(CMAKE_C_FLAGS_DEBUG "-g -ggdb --fstack-protector -D_FORTIFY_SOURCE=2") |