Skip to content

Commit 98a8a16

Browse files
Merge pull request #226 from compnerd/patch-1
Update CMakeLists.txt to link math library on Linux.
2 parents 48003e8 + 0d9f0b2 commit 98a8a16

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)