Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/uowuo/abaddon
Browse files Browse the repository at this point in the history
  • Loading branch information
ouwou committed May 21, 2024
2 parents 72975d8 + cba2f6c commit a4856a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ if (ENABLE_QRCODE_LOGIN)
target_compile_definitions(abaddon PRIVATE WITH_QRLOGIN)
endif ()

target_precompile_headers(abaddon PRIVATE <gtkmm.h> src/abaddon.hpp src/util.hpp)
if (NOT (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
target_precompile_headers(abaddon PRIVATE <gtkmm.h> src/abaddon.hpp src/util.hpp)
endif()

if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
Expand Down Expand Up @@ -146,6 +148,7 @@ if (APPLE)
target_link_libraries(abaddon "-framework CoreFoundation")
target_link_libraries(abaddon "-framework CoreAudio")
target_link_libraries(abaddon "-framework AudioToolbox")
target_link_libraries(abaddon "-framework AudioUnit")
endif ()

if (ENABLE_VOICE)
Expand Down
4 changes: 4 additions & 0 deletions src/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
#include <fstream>
#include <string>

#ifdef __APPLE__
#include <unistd.h>
#endif

#include <spdlog/spdlog.h>

using namespace std::literals::string_literals;
Expand Down

0 comments on commit a4856a5

Please sign in to comment.