Skip to content

Commit

Permalink
Fixed CMakeLists error when building static on Win32
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Mar 9, 2024
1 parent c1c83d6 commit afa0da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ IF(${BUILD_STATIC})
)
TARGET_LINK_LIBRARIES( ${LIB_NAME_STATIC} PRIVATE ${QT_LIBRARIES} )
IF( WIN32 )
target_include_directories(${LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/compat>)
target_include_directories(${LIB_NAME_STATIC} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/compat>)
TARGET_LINK_LIBRARIES( ${LIB_NAME_STATIC} PRIVATE ws2_32 winmm )
SET_TARGET_PROPERTIES( ${LIB_NAME_STATIC} PROPERTIES
COMPILE_FLAGS "-DSTATIC_CBSDK_LINK"
Expand Down

0 comments on commit afa0da8

Please sign in to comment.