From afa0da8dc8b9d214df63803bfaf7b04278304896 Mon Sep 17 00:00:00 2001 From: Chadwick Boulay Date: Sat, 9 Mar 2024 00:36:10 -0500 Subject: [PATCH] Fixed CMakeLists error when building static on Win32 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d06994..58e404c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,7 +239,7 @@ IF(${BUILD_STATIC}) ) TARGET_LINK_LIBRARIES( ${LIB_NAME_STATIC} PRIVATE ${QT_LIBRARIES} ) IF( WIN32 ) - target_include_directories(${LIB_NAME} PUBLIC $) + target_include_directories(${LIB_NAME_STATIC} PUBLIC $) TARGET_LINK_LIBRARIES( ${LIB_NAME_STATIC} PRIVATE ws2_32 winmm ) SET_TARGET_PROPERTIES( ${LIB_NAME_STATIC} PROPERTIES COMPILE_FLAGS "-DSTATIC_CBSDK_LINK"