Skip to content

Commit 58b373f

Browse files
committed
cmake+skeleton: skeleton needs imm32 on Window (mingw does not understand #pragma comment(lib))
1 parent c65be84 commit 58b373f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

skeleton/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ target_link_libraries(librw_skeleton
5050
librw
5151
)
5252

53+
if(WIN32)
54+
target_link_libraries(librw_skeleton
55+
PRIVATE
56+
imm32
57+
)
58+
endif()
59+
5360
librw_platform_target(librw_skeleton PROVIDES_WINMAIN INSTALL)
5461

5562
if(LIBRW_INSTALL)

0 commit comments

Comments
 (0)