find_package(foo) does not create cache entry for foo_DIR
Let's say you have:
find_package(foo)
and you call CMake with -Dfoo_DIR=/path/to/foo
. Later on, you run ccmake
to try to remember where foo_DIR
is... but foo_DIR
does not show up in the menu. You have to manually edit CMakeCache.txt
to find foo_DIR
. This is confusing. Is there any way this can be fixed? Perhaps find_package()
can change the type of foo_DIR
to PATH
?