mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Make compiler flags for reproducible builds optional
no change in default behavior: -ffile-prefix-map is still added if supported by compiler but add option for disabling it as it breaks generic tools for extracting debuginfo/debugsource from build artifacts like: https://sourceware.org/git/?p=debugedit.git;a=blob;f=scripts/find-debuginfo.in
This commit is contained in:
		@@ -348,7 +348,9 @@ source_group("generated headers"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
add_library(Catch2 ${ALL_FILES})
 | 
			
		||||
add_build_reproducibility_settings(Catch2)
 | 
			
		||||
if (CATCH_ENABLE_REPRODUCIBLE_BUILD)
 | 
			
		||||
    add_build_reproducibility_settings(Catch2)
 | 
			
		||||
endif()
 | 
			
		||||
add_library(Catch2::Catch2 ALIAS Catch2)
 | 
			
		||||
 | 
			
		||||
if (ANDROID)
 | 
			
		||||
@@ -401,7 +403,9 @@ target_include_directories(Catch2
 | 
			
		||||
add_library(Catch2WithMain
 | 
			
		||||
    ${SOURCES_DIR}/internal/catch_main.cpp
 | 
			
		||||
)
 | 
			
		||||
add_build_reproducibility_settings(Catch2WithMain)
 | 
			
		||||
if (CATCH_ENABLE_REPRODUCIBLE_BUILD)
 | 
			
		||||
    add_build_reproducibility_settings(Catch2WithMain)
 | 
			
		||||
endif()
 | 
			
		||||
add_library(Catch2::Catch2WithMain ALIAS Catch2WithMain)
 | 
			
		||||
target_link_libraries(Catch2WithMain PUBLIC Catch2)
 | 
			
		||||
set_target_properties(Catch2WithMain
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user