From 709dfbd298cc897c2088bc06800fb25dc4e73ee5 Mon Sep 17 00:00:00 2001 From: Stephen Hurd <deuce@synchro.net> Date: Fri, 25 Feb 2022 17:24:47 -0500 Subject: [PATCH] The library seems to be called cl32.lib on Win32 for no apparent reason --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 139a2ab..1096e18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,10 @@ ExternalProject_Add( ) add_library(cryptlib STATIC IMPORTED GLOBAL) -set_target_properties(cryptlib PROPERTIES IMPORTED_LOCATION ${Cryptlib_BINARY_DIR}/libcl.a) +if(MSVC) + set_target_properties(cryptlib PROPERTIES IMPORTED_LOCATION ${Cryptlib_BINARY_DIR}/cl32.lib) +else() + set_target_properties(cryptlib PROPERTIES IMPORTED_LOCATION ${Cryptlib_BINARY_DIR}/libcl.a) +endif() target_include_directories(cryptlib INTERFACE ${Cryptlib_BINARY_DIR}) add_dependencies(cryptlib CryptlibBuild) -- GitLab