<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hey there!<br><br></div><b>Current toolchain file for compiling CMake using CMake (on WIndows):</b><br>SET(CMAKE_SYSTEM_NAME Windows)<br>set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)<br>set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)<br>set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)<br>set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)<br>set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)<br><br></div><div><b>Unfortunately this konks out with:</b><br>CMake Error: The following variables are used in this project, but they are set to NOTFOUND.<br>Please set them or make sure they are set and tested correctly in the CMake files:<br>LIBMD_LIBRARY<br>    linked by target "cmTC_356fd" in directory D:/GitHub/custom_cmake/solutions_cmake/CMakeFiles/CMakeTmp<br><br></div><div><b>Trying to do so because building CMake without toolchain gives me the below; After I move cmake.exe to another directory:</b><br>CMake Error: Could not find CMAKE_ROOT !!!<br>CMake has most likely not been installed correctly.<br>Modules directory not found in<br><br>Usage<br><br>  cmake [options] <path-to-source><br>  cmake [options] <path-to-existing-build><br>  cmake [options] -S <path-to-source> -B <path-to-build><br><br>Specify a source directory to (re-)generate a build system for it in the<br>current working directory.  Specify an existing build directory to<br>re-generate its build system.<br><br>Run 'cmake --help' for more information.<br><br></div><div><b>Please advise!!<br><br></b></div><div><b>VT<br></b></div><div><br><br></div></div></div></div>