Skip to content

Commit b48b3d8

Browse files
committed
Add additional comments and reduce verbosity
Prior to this CMakeLists was printing the name of every single test.
1 parent 57519e6 commit b48b3d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ target_include_directories(
3333
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/include/>
3434
$<INSTALL_INTERFACE:include>)
3535

36+
# If we're building this project directly (rather than as a dependency), we
37+
# have to build tests
3638
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
3739

3840
# Run configure to generate config-host.h, if configure hasn't been run
@@ -65,9 +67,9 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
6567
list(FILTER liburing_tests EXCLUDE REGEX "helpers.c")
6668
foreach(test_file ${liburing_tests})
6769

68-
# Get the name of the target
70+
# Get the name of the target. This will be the file name, stripped of
71+
# ".c" at the end.
6972
get_filename_component(target ${test_file} NAME_WLE)
70-
message("Adding test '${target}' from test/${target}.c")
7173

7274
# Create an executable target for the test; add test/helpers.c as a source
7375
add_executable(${target} ${test_file} test/helpers.c)

0 commit comments

Comments
 (0)