Skip to content

Commit

Permalink
Changed CMake KDMacTouchbar linking to private in attempt to have Int…
Browse files Browse the repository at this point in the history
…el build work with Apple Silicon.
  • Loading branch information
Cuperino committed Aug 3, 2022
1 parent 943148a commit 24428c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ elseif(WIN32 OR APPLE)
)
endif()
if(APPLE AND NOT IOS)
target_include_directories(mactouchbar PUBLIC ${kdmactouchbar_SOURCE_DIR}/KDMacTouchBar)
target_link_directories(mactouchbar PUBLIC ${kdmactouchbar_SOURCE_DIR}/KDMacTouchBar)
target_link_libraries(${PROJECT_NAME} PUBLIC KDMacTouchBar)
target_include_directories(mactouchbar PRIVATE ${kdmactouchbar_SOURCE_DIR}/KDMacTouchBar)
target_link_directories(mactouchbar PRIVATE ${kdmactouchbar_SOURCE_DIR}/KDMacTouchBar)
target_link_libraries(${PROJECT_NAME} LINK_PRIVATE KDMacTouchBar)
endif()
else()
#target_include_directories(${PROJECT_NAME} PUBLIC ${qhotkey_SOURCE_DIR}/QHotkey)
Expand Down Expand Up @@ -241,7 +241,7 @@ else()
endif()
if (QHotkey_FOUND)
add_definitions(-DQHotkey_FOUND)
target_link_libraries(${PROJECT_NAME} PUBLIC
target_link_libraries(${PROJECT_NAME} LINK_PRIVATE
qhotkey
)
endif()
Expand Down

0 comments on commit 24428c5

Please sign in to comment.