We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b31f804 commit 7b75061Copy full SHA for 7b75061
core/CMakeLists.txt
@@ -50,7 +50,7 @@ include (CheckCXXCompilerFlag)
50
# Without this, the usage of the __FILE__ macro leaves the build directory in
51
# the binary. When building the Python extension with build isolation enabled
52
# this would lead to random paths in the binary.
53
-set(FILE_PREFIX_ARG "-ffile-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}=")
+set(FILE_PREFIX_ARG "-fmacro-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}/=")
54
check_cxx_compiler_flag("${FILE_PREFIX_ARG}" HAS_FILE_PREFIX_ARG)
55
if(HAS_FILE_PREFIX_ARG)
56
set(ZXING_CORE_LOCAL_DEFINES ${ZXING_CORE_LOCAL_DEFINES} "${FILE_PREFIX_ARG}")
0 commit comments