Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-DCMAKE_MODULE_PATH no longer works #4

Closed
cameron314 opened this issue Jul 20, 2020 · 1 comment
Closed

-DCMAKE_MODULE_PATH no longer works #4

cameron314 opened this issue Jul 20, 2020 · 1 comment

Comments

@cameron314
Copy link

cameron314 commented Jul 20, 2020

With a recent version of LLVM on Windows, adding -DCMAKE_MODULE_PATH to the command-line has no effect. However, placing the following in the llvm/CMakeLists.txt file does generate the cmake_checks_cache.txt file as expected:

list(INSERT CMAKE_MODULE_PATH 0 "${CMAKE_CURRENT_SOURCE_DIR}/../cmake-checks-cache/CMakeChecksCache")

(Obviously this is dependent on where the cmake-checks-cache repo is cloned to.)

CMake version: 3.15.1

@cristianadam
Copy link
Owner

I just gave CMake 3.21.2 a try and everything works as expected.

I assume you had a typo or wrong path when passing -DCMAKE_MODULE_PATH, otherwise it wouldn't have worked with list(INSERT CMAKE_MODULE_PATH ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants