Skip to content
This repository was archived by the owner on Sep 24, 2023. It is now read-only.

Commit 1899f51

Browse files
Fix OS X build
Change-Id: I21940352645ee77942d1c15a06fb9ea8c2619f3b Reviewed-on: https://codereview.kdab.com/39456 Tested-by: Continuous Integration <[email protected]> Reviewed-by: Hannah von Reth <[email protected]>
1 parent 21d88f1 commit 1899f51

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Charm/CMakeLists.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,19 @@ SET(
7676

7777
SET(CharmApplication_LIBS)
7878

79+
IF (APPLE)
80+
LIST(APPEND CharmApplication_SRCS MacApplicationCore.mm)
81+
82+
FIND_LIBRARY( COREFOUNDATION_LIBRARY CoreFoundation )
83+
LIST( APPEND CharmApplication_LIBS ${COREFOUNDATION_LIBRARY} )
84+
85+
FIND_LIBRARY( SECURITY_LIBRARY Security )
86+
LIST( APPEND CharmApplication_LIBS ${SECURITY_LIBRARY} )
87+
88+
FIND_LIBRARY( APPKIT_LIBRARY AppKit )
89+
LIST( APPEND CharmApplication_LIBS ${APPKIT_LIBRARY} )
90+
ENDIF()
91+
7992
IF( CHARM_CI_SUPPORT )
8093
LIST( APPEND CharmApplication_SRCS
8194
CI/CharmCommandInterface.cpp
@@ -126,7 +139,7 @@ ENDIF()
126139
IF (NOT QTKEYCHAIN_SYSTEM)
127140
LIST( APPEND CharmApplication_SRCS Keychain/keychain.cpp )
128141
IF (APPLE)
129-
LIST( APPEND CharmApplication_SRCS Keychain/keychain_mac.cpp MacApplicationCore.mm )
142+
LIST( APPEND CharmApplication_SRCS Keychain/keychain_mac.cpp )
130143

131144
FIND_LIBRARY( COREFOUNDATION_LIBRARY CoreFoundation )
132145
LIST( APPEND CharmApplication_LIBS ${COREFOUNDATION_LIBRARY} )

0 commit comments

Comments
 (0)