Skip to content

Commit

Permalink
Re-add compat to public includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Sep 27, 2023
1 parent 606d17a commit c1c83d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ target_include_directories( ${LIB_NAME}
TARGET_LINK_LIBRARIES( ${LIB_NAME} PRIVATE ${QT_LIBRARIES} )
IF( WIN32 )
TARGET_LINK_LIBRARIES( ${LIB_NAME} PRIVATE wsock32 ws2_32 winmm )
target_include_directories(${LIB_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/compat>)
ELSE()
IF(NOT APPLE)
TARGET_LINK_LIBRARIES(${LIB_NAME} PRIVATE rt)
Expand Down Expand Up @@ -238,6 +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_LINK_LIBRARIES( ${LIB_NAME_STATIC} PRIVATE ws2_32 winmm )
SET_TARGET_PROPERTIES( ${LIB_NAME_STATIC} PROPERTIES
COMPILE_FLAGS "-DSTATIC_CBSDK_LINK"
Expand Down Expand Up @@ -387,6 +389,7 @@ IF(${BUILD_TEST})
PRIVATE
wsock32 ws2_32 winmm
)
target_include_directories(testcbsdk PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/compat>)
ELSEIF(NOT APPLE)
# Hide unexported symbols
TARGET_LINK_LIBRARIES(testcbsdk PRIVATE rt)
Expand Down

0 comments on commit c1c83d6

Please sign in to comment.