Skip to content

Commit

Permalink
Try changing ffile-prefix-map to fix approval tests
Browse files Browse the repository at this point in the history
  • Loading branch information
horenmar committed Oct 4, 2022
1 parent 2848c2c commit 752743b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/CatchMiscFunctions.cmake
Expand Up @@ -115,6 +115,6 @@ endfunction()
function(add_build_reproducibility_settings target)
# Make the build reproducible on versions of g++ and clang that supports -ffile-prefix-map
if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
add_cxx_flag_if_supported_to_targets("-ffile-prefix-map=${CATCH_DIR}=." "${target}")
add_cxx_flag_if_supported_to_targets("-ffile-prefix-map=${CATCH_DIR}/=" "${target}")
endif()
endfunction()

0 comments on commit 752743b

Please sign in to comment.