Skip to content

Commit 7b75061

Browse files
committed
cmake: replace -ffile-prefix-map -> -fmacro-prefix-map (fix IDE debugging)
See #730.
1 parent b31f804 commit 7b75061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ include (CheckCXXCompilerFlag)
5050
# Without this, the usage of the __FILE__ macro leaves the build directory in
5151
# the binary. When building the Python extension with build isolation enabled
5252
# this would lead to random paths in the binary.
53-
set(FILE_PREFIX_ARG "-ffile-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}=")
53+
set(FILE_PREFIX_ARG "-fmacro-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}/=")
5454
check_cxx_compiler_flag("${FILE_PREFIX_ARG}" HAS_FILE_PREFIX_ARG)
5555
if(HAS_FILE_PREFIX_ARG)
5656
set(ZXING_CORE_LOCAL_DEFINES ${ZXING_CORE_LOCAL_DEFINES} "${FILE_PREFIX_ARG}")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy