Skip to content

Commit e95a263

Browse files
committed
better warnings for builds on older compilers
1 parent 825e6d6 commit e95a263

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,6 @@ if(HAS_CXX_23)
8181
target_link_libraries(libut_tests_23 PUBLIC stdc++exp)
8282
endif()
8383
else()
84-
message(WARNING "${CMAKE_CXX_COMPILER} does not support C++23, tests will not run")
84+
get_filename_component(compiler_name ${CMAKE_CXX_COMPILER} NAME)
85+
message(WARNING "${compiler_name} ${CMAKE_CXX_COMPILER_VERSION} does not support C++23, tests will not run")
8586
endif()

0 commit comments

Comments
 (0)