diff --git a/.github/workflows/cmake build test.yml b/.github/workflows/cmake build test.yml index da10e665..68886c46 100644 --- a/.github/workflows/cmake build test.yml +++ b/.github/workflows/cmake build test.yml @@ -76,8 +76,8 @@ jobs: - name: Run build-wrapper run: | - cmake . -DCMAKE_BUILD_TYPE=Release - cmake --build . + cmake -S . -DCMAKE_BUILD_TYPE=Release + cmake --build . --config Release job3: name: macos Build and analyze runs-on: macos-12 diff --git a/CMakeLists.txt b/CMakeLists.txt index bf136187..770536d1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,11 @@ if(UNIX AND NOT APPLE) endif() if (APPLE) + if(WITH_EPWING_SUPPORT) add_subdirectory(thirdparty/eb) + endif() + + include_directories(/usr/local/include /opt/homebrew/include) endif () project(goldendict @@ -477,6 +481,9 @@ if(MSVC) target_include_directories(${CMAKE_PROJECT_NAME} PUBLIC ${CMAKE_SOURCE_DIR}/winlibs/include/ ) + + set_property(TARGET ${CMAKE_PROJECT_NAME} PROPERTY + MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") endif() target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE @@ -491,7 +498,9 @@ target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE ) if(APPLE) + if(WITH_EPWING_SUPPORT) target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE eb) + endif() endif() if(UNIX)