Skip to content

Commit b3f176a

Browse files
committed
build: correct the package name for SPM
This was caught by the attempt to claw back some of the build time by re-using the artifacts. The package name did not match across SPM and CMake resulting in the API being unavailable to the tests.
1 parent 9d2d5fa commit b3f176a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ find_package(Foundation QUIET)
5353
find_package(SQLite3 REQUIRED)
5454

5555
# Enable `package` modifier for the whole package.
56-
add_compile_options("$<$<COMPILE_LANGUAGE:Swift>:-package-name;SwiftPM>")
56+
add_compile_options("$<$<COMPILE_LANGUAGE:Swift>:SHELL:-package-name swift_package_manager>")
5757
if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
5858
link_directories(/usr/local/lib)
5959
endif()

0 commit comments

Comments
 (0)