Fix faulty CMAKE_FIND_ROOT_PATH_MODE_PACKAGE used for the wasm build#204
Conversation
|
As the docs say As far as my understanding goes we just need to control the When cross-compiling (for example, when using Emscripten), CMake normally uses the host system's root directory as the search root. So in this case we don't even need to control both vars through |
f2cfb8b to
5afd152
Compare
|
cc @mcbarton for reviews It was a faulty thing on xeus (xeus-cookiecutter) which was responsible for this. I fixed it on xeus yersterday (jupyter-xeus/xeus#416) We need to do the same on libraries that might affect xeus-cpp (I don't think other libraries have this mistake but cppinterop does use |
|
@anutosh491 If removing CMAKE_PREFIX_PATH from the cmake config shouldn't you also remove where you export this variable just before building? |
d991489 to
41ba265
Compare
Absolutely, that's not required for the build. |
Description
I'm not sure which PR introduced
CMAKE_FIND_ROOT_PATH_MODE_PACKAGEbut it is being used wrongly.Cmake docs say that there are only 3 values this variables accepts
What we are using is something like
CMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONwhich doesn't make sense (its wrong but somehow the build just works)Please tick all options which are relevant.