mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 08:54:23 +01:00
Fix shared library link error with cmake on Windows
Set the library path as the current binary dir Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
e29a837ed3
commit
b283228ea3
@ -0,0 +1,3 @@
|
||||
Bugfix
|
||||
* Fix compilation on Windows when building shared library, by setting
|
||||
library search path to CMAKE_CURRENT_BINARY_DIR.
|
@ -202,6 +202,7 @@ if(USE_STATIC_MBEDTLS_LIBRARY)
|
||||
endif(USE_STATIC_MBEDTLS_LIBRARY)
|
||||
|
||||
if(USE_SHARED_MBEDTLS_LIBRARY)
|
||||
set(CMAKE_LIBRARY_PATH ${CMAKE_CURRENT_BINARY_DIR})
|
||||
add_library(${mbedcrypto_target} SHARED ${src_crypto})
|
||||
set_target_properties(${mbedcrypto_target} PROPERTIES VERSION 2.28.0 SOVERSION 7)
|
||||
target_link_libraries(${mbedcrypto_target} PUBLIC ${libs})
|
||||
|
Loading…
Reference in New Issue
Block a user