We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72c4c37 commit 62a35eaCopy full SHA for 62a35ea
cmake/modules/shared/CompilerSettings.cmake
@@ -44,4 +44,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "WASI")
44
endif()
45
46
file(STRINGS "../VERSION.txt" SWT_TESTING_LIBRARY_VERSION LIMIT_COUNT 1)
47
-add_compile_definitions("$<$<COMPILE_LANGUAGE:CXX>:SWT_TESTING_LIBRARY_VERSION=\"${SWT_TESTING_LIBRARY_VERSION}\">")
+if(SWT_TESTING_LIBRARY_VERSION)
48
+ message(STATUS "Swift Testing version: ${SWT_TESTING_LIBRARY_VERSION}")
49
+ add_compile_definitions("$<$<COMPILE_LANGUAGE:CXX>:SWT_TESTING_LIBRARY_VERSION=\"${SWT_TESTING_LIBRARY_VERSION}\">")
50
+endif()
0 commit comments