From 1bd8082a7eefd7c58302d876522705b6c72b8dfe 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/05469895f9cb7fbd85810745b6fca8796e3f500e --- 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)