<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Awesome thank you so much! So i’ve upgraded to <font face="Menlo" class=""><span style="font-size: 11px;" class="">3.15.3 and it’s told me perfectly my issue. So I have an override script (FindLibXml2.cmake):</span></font>
<div class=""><font face="Menlo" class=""><span style="font-size: 11px;" class=""><br class="">
</span></font></div>
<div class=""><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class="">*********</span><span style="font-family: Menlo; font-size: 11px;" class="">****************** START CODE </span><span style="font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;" class="">*********</span><span style="font-family: Menlo; font-size: 11px;" class="">******************</span></div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""># FindLibXml2.cmake</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">#</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""># A wrapper around CMake's FindLibXml2 which provides an imported target.</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""># Find LibXml2 using the built-in module</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">set(_cmake_module_path "${CMAKE_MODULE_PATH}")</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">set(CMAKE_MODULE_PATH)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">include(FindLibXml2)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">set(CMAKE_MODULE_PATH "${_cmake_module_path}")</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; min-height: 13px;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">if(LibXml2_FOUND AND NOT TARGET LibXml2::LibXml2)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> add_library(LibXml2::LibXml2 INTERFACE IMPORTED)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> set_target_properties(LibXml2::LibXml2 PROPERTIES</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> INTERFACE_LINK_LIBRARIES "${LIBXML2_LIBRARIES}"</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> INTERFACE_INCLUDE_DIRECTORIES "${LIBXML2_INCLUDE_DIR}")</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">else()</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> #<a href="https://github.com/Homebrew/homebrew-core/issues/6186" class="">https://github.com/Homebrew/homebrew-core/issues/6186</a></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> if(APPLE)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> get_target_property(id LibXml2::LibXml2 INTERFACE_INCLUDE_DIRECTORIES)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> list(REMOVE_ITEM id "/usr/include/libxml2")</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> set_target_properties(LibXml2::LibXml2 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${id}")</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> endif()</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">endif()</span></div>
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">*********</span>****************** END CODE <span style="font-variant-ligatures: no-common-ligatures;" class="">*********</span>******************</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<br class="">
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">So the issue was:</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""> set(CMAKE_MODULE_PATH)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">doesn’t work in cmake-server; also unset(CMAKE_MODULE_PATH) didn’t work either, when i do:</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">set(CMAKE_MODULE_PATH “/nonexistent”)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">it all comes good; for some reason i think unset isn’t quite happy on cmake-server.</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class="">Many thanks again for your quick response!</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo;" class="">
<span style="font-variant-ligatures: no-common-ligatures" class=""><br class="">
</span></div>
<div class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
<b style="background-color: rgb(255, 255, 255);" class=""><span lang="EN-US" style="font-size: 13pt;" class="">Christopher Dawes</span></b><br style="background-color: rgb(255, 255, 255);" class="">
<b style="background-color: rgb(255, 255, 255);" class=""><span style="font-size: 11pt;" class="">Principal Architect, EFTLab</span></b><b style="background-color: rgb(255, 255, 255);" class=""><span style="font-size: 11pt; font-family: Tahoma, sans-serif; color: windowtext;" class=""> </span></b><br style="background-color: rgb(255, 255, 255);" class="">
<br style="background-color: rgb(255, 255, 255);" class="">
<b style="background-color: rgb(255, 255, 255);" class=""><span style="font-size: 9pt;" class="">M:</span></b><span style="font-size: 9pt; background-color: rgb(255, 255, 255);" class=""> </span><span style="font-size: 9pt; background-color: rgb(255, 255, 255);" class="">+44
(0)7899 842 759</span><br style="background-color: rgb(255, 255, 255);" class="">
<b style="background-color: rgb(255, 255, 255);" class=""><span style="font-size: 9pt;" class="">E:</span></b><span style="font-size: 9pt; background-color: rgb(255, 255, 255);" class=""> <a href="mailto:christopher.dawes@eftlab.com" class="">christopher.dawes@eftlab.com</a></span><br style="background-color: rgb(255, 255, 255);" class="">
<b style="background-color: rgb(255, 255, 255);" class=""><span style="font-size: 9pt;" class="">A:</span></b><span style="font-size: 9pt; background-color: rgb(255, 255, 255);" class=""> </span><span style="font-size: 9pt; background-color: rgb(255, 255, 255);" class="">109
Brighton Road, Sandgate, QLD 4017</span><br style="background-color: rgb(255, 255, 255);" class="">
<br style="background-color: rgb(255, 255, 255);" class="">
<b style="background-color: rgb(255, 255, 255);" class=""><span style="font-size: 8.5pt;" class="">IMPORTANT NOTICE</span></b><span lang="CS" style="background-color: rgb(255, 255, 255); font-size: 8.5pt;" class=""> </span><br style="background-color: rgb(255, 255, 255);" class="">
<span style="background-color: rgb(255, 255, 255); font-size: 8pt;" class="">This message contains confidential information and is intended only for the addressee(s). E-mail transmission cannot be guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. EFTlab Pty Ltd cannot accept liability for any errors or omissions in the contents of this message, which may arise as a result of e-mail transmission. Please note that
EFTlab Pty Ltd may monitor, analyse and archive email traffic, data and the content of email for the purposes of security, legal compliance and staff training. If you have received this email in error please notify us at </span><span style="color: windowtext; background-color: rgb(255, 255, 255); font-size: 11pt; font-family: Calibri, sans-serif;" class=""><a href="mailto:support@eftlab.com.au" class=""><span style="font-size: 8pt;" class="">support@eftlab.com.au</span></a></span><span style="background-color: rgb(255, 255, 255); font-size: 8pt;" class="">. </span></div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 4 Sep 2019, at 19:39, Kyle Edwards via CMake <<a href="mailto:cmake@cmake.org" class="">cmake@cmake.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">On Wed, 2019-09-04 at 14:12 -0400, fdk17 wrote:<br class="">
<blockquote type="cite" class=""><a href="https://github.com/microsoft/vscode-cmake-tools/issues/752" class="">https://github.com/microsoft/vscode-cmake-tools/issues/752</a> states<br class="">
that it ran out of stack and the log shows what looks like to be<br class="">
involved with a recursive loop in some CMakeLists.txt. A call depth<br class="">
of 27491 seems a bit excessive.<br class="">
<br class="">
After the second call to FindPackage it just seems to be doing the<br class="">
same thing over and over again.<br class="">
I'd think a newer version of CMake would complain about too much<br class="">
recursion in the project files.<br class="">
</blockquote>
<br class="">
Indeed, this was added in 3.14:<br class="">
<br class="">
<a href="https://cmake.org/cmake/help/v3.14/variable/CMAKE_MAXIMUM_RECURSION_DEP" class="">https://cmake.org/cmake/help/v3.14/variable/CMAKE_MAXIMUM_RECURSION_DEP</a><br class="">
TH.html<br class="">
Kyle<br class="">
-- <br class="">
<br class="">
Powered by www.kitware.com<br class="">
<br class="">
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br class="">
<br class="">
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class="">
<br class="">
CMake Support: http://cmake.org/cmake/help/support.html<br class="">
CMake Consulting: http://cmake.org/cmake/help/consulting.html<br class="">
CMake Training Courses: http://cmake.org/cmake/help/training.html<br class="">
<br class="">
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
https://cmake.org/mailman/listinfo/cmake<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>