axom icon indicating copy to clipboard operation
axom copied to clipboard

Fix `using-with-cmake` and `using-with-blt` examples on Windows

Open kennyweiss opened this issue 2 years ago • 3 comments

User @tlorentz77 reported trouble building the using-with-cmake and using-with-blt examples on Windows.

We should fix these and incorporate them into our Windows-based CI.

See #982 for more details.

kennyweiss avatar Feb 13 '23 17:02 kennyweiss

Hello @kennyweiss , I've noticed that you have merged a branch (https://github.com/LLNL/axom/pull/1094) to fix this issue. Thanks very much for your hard work.

However, I found this issue have not been fixed yet. If you are trying to build one of the examples (https://github.com/LLNL/axom/tree/develop/src/examples/using-with-blt) after installing axom using vcpkg on Windows, you will find that lots of TPL pakcages cannot be found. I think the issue is caused by the package config files located in different folders on different platform (e.g. on Linux: "${CAMP_DIR}/lib/cmake/camp" and on Windows: "${CAMP_DIR}/share/camp". )

https://github.com/LLNL/axom/blob/a5b9b2239020df6283adb804532c691a5924904d/src/cmake/axom-config.cmake.in#L90

The above is just for example, and the paths of other packages have similar problem.

tlorentz77 avatar May 25 '23 02:05 tlorentz77

Thanks for your continued patience @tlorentz77.

I'm still working on the fix for the using-with-cmake problem (i.e. this issue). In the process of looking into it, I noticed that the Windows build was broken, and fixed it in #1094. I'm optimistic that the fix will be reasonably straightforward and will keep you posted on my progress.

kennyweiss avatar May 25 '23 02:05 kennyweiss

Thanks @kennyweiss. I can hardly wait to run Axom on Windows.

tlorentz77 avatar May 25 '23 07:05 tlorentz77