Skip to content

Commit

Permalink
cmake cleanup and more icwyu
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Oct 16, 2024
1 parent 1f2a0ce commit dc05e30
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static-analyzers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run cpplint
run: cpplint --counting=detailed --recursive examples benchmarks src tests
run: cpplint --counting=detailed --exclude=*.c --recursive examples benchmarks src tests

clang-tidy:
if: github.event_name == 'pull_request'
Expand Down
6 changes: 5 additions & 1 deletion config/cmake/addSpdlog.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ if(NOT TARGET spdlog::spdlog)
set(SPDLOG_FMT_EXTERNAL ON CACHE INTERNAL "")

# use the vendored SPDLOG library
add_subdirectory(ThirdParty/spdlog)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.25)
add_subdirectory(ThirdParty/spdlog EXCLUDE_FROM_ALL SYSTEM)
else()
add_subdirectory(ThirdParty/spdlog EXCLUDE_FROM_ALL)
endif()

set_target_properties(spdlog PROPERTIES FOLDER Extern)
hide_variable(SPDLOG_BUILD_ALL)
Expand Down
2 changes: 1 addition & 1 deletion config/cmake/addUtilities.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

if(NOT TARGET gmlc::utilities)
set(GMLC_UTILITIES_INSTALL OFF CACHE INTERNAL "")

add_subdirectory(ThirdParty/utilities)

hide_variable(GMLC_UTILITIES_GENERATE_DOXYGEN_DOC)
Expand Down
1 change: 1 addition & 0 deletions tests/helics/shared_library/iterationTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ SPDX-License-Identifier: BSD-3-Clause
#include <iostream>
#include <string>
#include <utility>
#include <vector>

struct iteration_tests: public FederateTestFixture, public ::testing::Test {};

Expand Down
1 change: 1 addition & 0 deletions tests/helics/shared_library/test-combo-federate_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SPDX-License-Identifier: BSD-3-Clause
#include "gtest/gtest.h"
#include <future>
#include <iostream>
#include <string>

/** these test cases test out the value converters and some of the other functions
*/
Expand Down

0 comments on commit dc05e30

Please sign in to comment.