From f1a990575eb87787c77eacb99be29171e4b3098d Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 20 Jun 2024 16:44:01 +0200 Subject: Lowercase all linked libraries for building on Linux (#726) Microsoft, in their infinite wisdom, decided to suffix some libraries with `.Lib` instead of `.lib` This causes issues with cmake on Linux because it only looks for `.lib` which it won't be able to resolve because the file system is case sensitive. Microsoft does this for backwards compatibility, in cmake this is a limitation so the best solution is to bite the bullet and lowercase all libraries which setups such as wine-msvc and xwin already do. --- primedev/Launcher.cmake | 2 +- primedev/Northstar.cmake | 12 ++++++------ primedev/wsockproxy/CMakeLists.txt | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'primedev') diff --git a/primedev/Launcher.cmake b/primedev/Launcher.cmake index c04fc70b..d23c7c4b 100644 --- a/primedev/Launcher.cmake +++ b/primedev/Launcher.cmake @@ -19,7 +19,7 @@ target_link_libraries( uuid.lib odbc32.lib odbccp32.lib - WS2_32.lib + ws2_32.lib ) set_target_properties( diff --git a/primedev/Northstar.cmake b/primedev/Northstar.cmake index aef630c8..40583d28 100644 --- a/primedev/Northstar.cmake +++ b/primedev/Northstar.cmake @@ -172,13 +172,13 @@ target_link_libraries( libcurl minizip silver-bun - WS2_32.lib - Crypt32.lib - Cryptui.lib + ws2_32.lib + crypt32.lib + cryptui.lib dbghelp.lib - Wldap32.lib - Normaliz.lib - Bcrypt.lib + wldap32.lib + normaliz.lib + bcrypt.lib version.lib ) diff --git a/primedev/wsockproxy/CMakeLists.txt b/primedev/wsockproxy/CMakeLists.txt index 0dbac745..b1d03ce7 100644 --- a/primedev/wsockproxy/CMakeLists.txt +++ b/primedev/wsockproxy/CMakeLists.txt @@ -15,7 +15,7 @@ target_link_libraries( PRIVATE minhook mswsock.lib ws2_32.lib - ShLwApi.lib + shlwapi.lib imagehlp.lib dbghelp.lib kernel32.lib -- cgit v1.2.3