Skip to content

Commit ed0f715

Browse files
committed
Fix the path to VERSION.txt used in CMake.
Fixes a bug introduced in #1320.
1 parent 05b4639 commit ed0f715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/shared/CompilerSettings.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "WASI")
4343
add_compile_definitions("SWT_NO_PIPES")
4444
endif()
4545

46-
file(STRINGS "../VERSION.txt" SWT_TESTING_LIBRARY_VERSION LIMIT_COUNT 1)
46+
file(STRINGS "${PROJECT_SOURCE_DIR}/VERSION.txt" SWT_TESTING_LIBRARY_VERSION LIMIT_COUNT 1)
4747
if(SWT_TESTING_LIBRARY_VERSION)
4848
message(STATUS "Swift Testing version: ${SWT_TESTING_LIBRARY_VERSION}")
4949
add_compile_definitions("$<$<COMPILE_LANGUAGE:CXX>:SWT_TESTING_LIBRARY_VERSION=\"${SWT_TESTING_LIBRARY_VERSION}\">")

0 commit comments

Comments
 (0)