diff --git a/.github/workflows/build-matrix.yml b/.github/workflows/build-matrix.yml index 68dc3fab..202fba7d 100644 --- a/.github/workflows/build-matrix.yml +++ b/.github/workflows/build-matrix.yml @@ -10,14 +10,14 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ windows-latest, ubuntu-latest, macos-latest ] # + os: [ windows-latest ] # , ubuntu-latest, macos-latest include: - os: windows-latest compiler: msvc - - os: ubuntu-latest - compiler: gcc - - os: macos-latest - compiler: clang +# - os: ubuntu-latest +# compiler: gcc +# - os: macos-latest +# compiler: clang steps: - name: Checkout code uses: actions/checkout@v4.1.4 diff --git a/gtfs/CMakeLists.txt b/gtfs/CMakeLists.txt index 0018ff23..a0c29c91 100644 --- a/gtfs/CMakeLists.txt +++ b/gtfs/CMakeLists.txt @@ -19,17 +19,16 @@ target_link_libraries(${PROJECT_NAME} spdlog::spdlog ) + if(WIN32) if(BUILD_SHARED_LIBS) target_compile_definitions(${PROJECT_NAME} PRIVATE "GTFS_API=__declspec(dllexport)" INTERFACE "GTFS_API=__declspec(dllimport)" - "LOGGER_API=__declspec(dllimport)" ) else() target_compile_definitions(${PROJECT_NAME} PUBLIC "GTFS_API" - "LOGGER_API" ) endif() else() @@ -37,17 +36,14 @@ else() target_compile_definitions(${PROJECT_NAME} PRIVATE "GTFS_API=__attribute__((visibility(\"default\")))" INTERFACE "GTFS_API" - "LOGGER_API=__attribute__((visibility(\"default\")))" ) else() target_compile_definitions(${PROJECT_NAME} PUBLIC "GTFS_API" - "LOGGER_API" ) endif() endif() - # target_compile_definitions(${PROJECT_NAME} PRIVATE LIBRARY_EXPORTS) message(BINARY_DIR: ${CMAKE_BINARY_DIR}/${PROJECT_NAME}) add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD