mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	use absolute path to test files - accroding to CMake docs EXISTS behavior is well-defined only for full paths.
This commit is contained in:
		@@ -47,6 +47,8 @@ endfunction()
 | 
			
		||||
 | 
			
		||||
# Worker function
 | 
			
		||||
function(ParseFile SourceFile TestTarget)
 | 
			
		||||
    # accroding to CMake docs EXISTS behavior is well-defined only for full paths.
 | 
			
		||||
    get_filename_component(SourceFile ${SourceFile} ABSOLUTE)
 | 
			
		||||
    if(NOT EXISTS ${SourceFile})
 | 
			
		||||
        message(WARNING "Cannot find source file: ${SourceFile}")
 | 
			
		||||
        return()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user