File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ if(POLICY CMP0157)
1919 endif ()
2020endif ()
2121
22+ set (SWT_SOURCE_ROOT_DIR ${CMAKE_SOURCE_DIR} )
23+
2224project (SwiftTesting
2325 LANGUAGES CXX Swift)
2426
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ if(POLICY CMP0157)
1212 cmake_policy (SET CMP0157 NEW)
1313endif ()
1414
15+ set (SWT_SOURCE_ROOT_DIR ${CMAKE_SOURCE_DIR} /../..)
16+
1517project (TestingMacros
1618 LANGUAGES Swift)
1719
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "WASI")
4343 add_compile_definitions ("SWT_NO_PIPES" )
4444endif ()
4545
46- file (STRINGS ".. /VERSION.txt" SWT_TESTING_LIBRARY_VERSION LIMIT_COUNT 1)
46+ file (STRINGS "${SWT_SOURCE_ROOT_DIR} /VERSION.txt" SWT_TESTING_LIBRARY_VERSION LIMIT_COUNT 1)
4747if (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} \" >" )
You can’t perform that action at this time.
0 commit comments