Skip to content

Commit 97f5eeb

Browse files
Submodule support and MacOS (djarek#72)
1 parent 8608a3b commit 97f5eeb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,19 @@ add_library(certify::core ALIAS core)
3535
target_compile_features(core INTERFACE cxx_std_11)
3636

3737
target_include_directories(core INTERFACE
38-
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
38+
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
3939
$<INSTALL_INTERFACE:include>
4040
)
4141

4242
if(MSVC)
4343
target_link_libraries(core INTERFACE Crypt32.lib)
4444
endif()
4545

46+
if(APPLE)
47+
target_link_libraries(core INTERFACE "-framework CoreFoundation" "-framework Security")
48+
set_target_properties(core PROPERTIES LINK_FLAGS "-Wl,-F/Library/Frameworks")
49+
endif()
50+
4651
target_link_libraries(
4752
core
4853
INTERFACE

0 commit comments

Comments
 (0)