Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 51af7c8

Browse files
compnerdtexasmichelle
authored andcommitted
build: workaround autolinking on Linux (#1132)
Unfortunately, Linux will attempt to autolink the libraries, so provide a linker search path entry for Numerics to allow the lookup to succeed.
1 parent e3a5711 commit 51af7c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ if(ENABLE_SWIFT_NUMERICS)
5151
else()
5252
set_target_properties(${module_name} PROPERTIES
5353
IMPORTED_LOCATION ${build_dir}/lib/${CMAKE_SHARED_LIBRARY_PREFIX}${module_name}${CMAKE_SHARED_LIBRARY_SUFFIX}
54-
INTERFACE_INCLUDE_DIRECTORIES ${build_dir}/swift)
54+
INTERFACE_INCLUDE_DIRECTORIES ${build_dir}/swift
55+
INTERFACE_LINK_DIRECTORIES ${build_dir}/lib)
5556
endif()
5657
add_dependencies(${module_name} ${build_target})
5758
endfunction()

0 commit comments

Comments
 (0)