File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
include (FetchContent )
4
4
5
- message (STATUS "Downloading Catch2..." )
6
-
7
5
function (fetch_catch2 )
8
6
set (fetch_args "" )
9
7
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.25.0" )
@@ -26,6 +24,8 @@ function(fetch_catch2)
26
24
FetchContent_GetProperties (EP_Catch2 )
27
25
28
26
if (NOT ep_catch2_POPULATED )
27
+ message (STATUS "Downloading Catch2..." )
28
+
29
29
# Avoid Catch2 compile warnings from being treated as errors.
30
30
string (REPLACE " -Werror" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS} " )
31
31
string (REPLACE " -Werror" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} " )
@@ -43,9 +43,9 @@ function(fetch_catch2)
43
43
# Catch2 config vars.
44
44
set_property (CACHE CATCH_INSTALL_DOCS PROPERTY VALUE OFF )
45
45
set_property (CACHE CATCH_INSTALL_EXTRAS PROPERTY VALUE OFF )
46
+
47
+ message (STATUS "Downloading Catch2... done." )
46
48
endif ()
47
49
endfunction ()
48
50
49
51
fetch_catch2 ()
50
-
51
- message (STATUS "Downloading Catch2... done." )
You can’t perform that action at this time.
0 commit comments