From 0d9f0b2a98c58ac49f8a60e283c586071098846c Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 7 Apr 2022 10:04:09 -0700 Subject: [PATCH] Update CMakeLists.txt Adjust the CMake build system to reflect the recent changes of requiring the explicit linking of libm on Linux platforms. --- Sources/_NumericsShims/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/_NumericsShims/CMakeLists.txt b/Sources/_NumericsShims/CMakeLists.txt index 92ed523..94f7378 100644 --- a/Sources/_NumericsShims/CMakeLists.txt +++ b/Sources/_NumericsShims/CMakeLists.txt @@ -10,5 +10,7 @@ See https://swift.org/LICENSE.txt for license information add_library(_NumericsShims INTERFACE) target_include_directories(_NumericsShims INTERFACE include) +target_link_libraries(_NumericsShims INTERFACE + $<$:m>) set_property(GLOBAL APPEND PROPERTY SWIFT_NUMERICS_EXPORTS _NumericsShims)