Skip to content

Commit 1faee0e

Browse files
committed
BUG: Shlwapi lib is required to compile on MSVC
1 parent dd6c242 commit 1faee0e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cli/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ file(GLOB mainfile "main.cpp")
77
list(REMOVE_ITEM srcs ${mainfile})
88

99
link_libraries(${PROJECT_NAME} tinyxml)
10+
if( MSVC )
11+
link_libraries(${PROJECT_NAME} Shlwapi)
12+
endif( MSVC )
1013

1114
add_library(cli_lib OBJECT ${hdrs} ${srcs})
1215

0 commit comments

Comments
 (0)