From b1782ee3d6d33049248cc7ac23198cc360f93602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20B=C3=A4hr?= Date: Wed, 24 May 2023 22:17:43 +0200 Subject: [PATCH] Fix build of "tests" on macOS Building the C++ unit tests failed for tests/src/App/Metadata.cpp tests/src/Base/Reader.cpp because some XML headers were not found. This was because the XercesC include dir was not in the search list for headers. I cannot say why only macOS seems to be affected, but it's not the first time, see e.g https://github.com/FreeCAD/FreeCAD/commit/a1776d3e744075e54cf95c68a9264fa0d937cc2d --- tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d6d828382d..09db35011f 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -37,7 +37,7 @@ endif() add_executable(Tests_run) add_subdirectory(lib) add_subdirectory(src) -target_include_directories(Tests_run PUBLIC ${Python3_INCLUDE_DIRS}) +target_include_directories(Tests_run PUBLIC ${Python3_INCLUDE_DIRS} ${XercesC_INCLUDE_DIRS}) target_link_libraries(Tests_run gtest_main ${Google_Tests_LIBS} FreeCADApp) add_executable(Sketcher_tests_run)