Skip to content

Commit 0d9f0b2

Browse files
committed
Update CMakeLists.txt
Adjust the CMake build system to reflect the recent changes of requiring the explicit linking of libm on Linux platforms.
1 parent 48003e8 commit 0d9f0b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/_NumericsShims/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,7 @@ See https://swift.org/LICENSE.txt for license information
1010
add_library(_NumericsShims INTERFACE)
1111
target_include_directories(_NumericsShims INTERFACE
1212
include)
13+
target_link_libraries(_NumericsShims INTERFACE
14+
$<$<PLATFORM_ID:Linux>:m>)
1315

1416
set_property(GLOBAL APPEND PROPERTY SWIFT_NUMERICS_EXPORTS _NumericsShims)

0 commit comments

Comments
 (0)