mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +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
|
# Worker function
|
||||||
function(ParseFile SourceFile TestTarget)
|
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})
|
if(NOT EXISTS ${SourceFile})
|
||||||
message(WARNING "Cannot find source file: ${SourceFile}")
|
message(WARNING "Cannot find source file: ${SourceFile}")
|
||||||
return()
|
return()
|
||||||
|
Loading…
Reference in New Issue
Block a user