Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core&sts support compile on MACOS #147

Merged
merged 1 commit into from
Sep 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,15 @@ if(CMAKE_HOST_WIN32)
target_compile_definitions(core
PRIVATE CURL_STATICLIB
_CRT_SECURE_NO_WARNINGS)
elseif(CMAKE_HOST_APPLE)
MESSAGE(STATUS "core: include & link for MACOS")
target_include_directories(core
PRIVATE /usr/local/include)
target_link_libraries(core
/usr/local/lib/libcrypto.dylib
curl
/usr/local/lib/libjsoncpp.dylib
/usr/local/lib/libuuid.dylib )
else()
target_include_directories(core
PRIVATE /usr/include/jsoncpp)
Expand Down
6 changes: 6 additions & 0 deletions sts/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ if(CMAKE_HOST_WIN32)
set_target_properties(sts
PROPERTIES
COMPILE_OPTIONS "/bigobj")
elseif(CMAKE_HOST_APPLE)
MESSAGE(STATUS "sts: include & link for MACOS")
target_include_directories(sts
PRIVATE /usr/local/include)
target_link_libraries(sts
/usr/local/lib/libjsoncpp.dylib)
else()
target_include_directories(sts
PRIVATE /usr/include/jsoncpp)
Expand Down