mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-22 19:33:29 +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:
parent
d271683c14
commit
a49fa0edbe
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user