Skip to content

Commit f1a9905

Browse files
authored
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.
1 parent 26fffcf commit f1a9905

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

primedev/Launcher.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ target_link_libraries(
1919
uuid.lib
2020
odbc32.lib
2121
odbccp32.lib
22-
WS2_32.lib
22+
ws2_32.lib
2323
)
2424

2525
set_target_properties(

primedev/Northstar.cmake

+6-6
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,13 @@ target_link_libraries(
172172
libcurl
173173
minizip
174174
silver-bun
175-
WS2_32.lib
176-
Crypt32.lib
177-
Cryptui.lib
175+
ws2_32.lib
176+
crypt32.lib
177+
cryptui.lib
178178
dbghelp.lib
179-
Wldap32.lib
180-
Normaliz.lib
181-
Bcrypt.lib
179+
wldap32.lib
180+
normaliz.lib
181+
bcrypt.lib
182182
version.lib
183183
)
184184

primedev/wsockproxy/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ target_link_libraries(
1515
PRIVATE minhook
1616
mswsock.lib
1717
ws2_32.lib
18-
ShLwApi.lib
18+
shlwapi.lib
1919
imagehlp.lib
2020
dbghelp.lib
2121
kernel32.lib

0 commit comments

Comments
 (0)