Fixed building and tests on macos
This commit is contained in:
@@ -7,6 +7,10 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
set(TEST_DISABLE_WARNINGS "-Wno-unused-parameter -Wno-unused-private-field -Wno-unused-variable -Wno-attributes")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LIBCLANG_CXXFLAGS} ${TEST_DISABLE_WARNINGS}")
|
||||
if(APPLE)
|
||||
# Without this, clang-uml test cases fail with error saying that clang cannot find stdarg.h
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I${LLVM_LIBRARY_DIR}/clang/${LLVM_PACKAGE_VERSION}/include")
|
||||
endif(APPLE)
|
||||
|
||||
file(GLOB_RECURSE TEST_CASE_SOURCES t*/*.cc)
|
||||
file(GLOB_RECURSE TEST_CASE_CONFIGS t*/.clang-uml)
|
||||
|
||||
@@ -16,4 +16,7 @@ diagrams:
|
||||
- clanguml::t00039::E
|
||||
- clanguml::t00039::ns3::F<T>
|
||||
relationships:
|
||||
- inheritance
|
||||
- inheritance
|
||||
exclude:
|
||||
namespaces:
|
||||
- std
|
||||
@@ -16,4 +16,6 @@ diagrams:
|
||||
- instantiation
|
||||
exclude:
|
||||
specializations:
|
||||
- clanguml::t00042::C<T>
|
||||
- clanguml::t00042::C<T>
|
||||
namespaces:
|
||||
- std
|
||||
@@ -48,7 +48,6 @@ TEST_CASE("t00048", "[test-case][class]")
|
||||
REQUIRE_THAT(puml, IsBaseClass(_A("Base"), _A("A")));
|
||||
REQUIRE_THAT(puml, IsBaseClass(_A("Base"), _A("B")));
|
||||
|
||||
|
||||
save_puml(
|
||||
"./" + config.output_directory() + "/" + diagram->name + ".puml", puml);
|
||||
}
|
||||
Reference in New Issue
Block a user