This reverts commit f6f9c5 - the behavior is faulty with command line override
and doesn't work properly with special cases like OMNIORBPY
ELSE()
SET(_var_already_there FALSE)
ENDIF()
- # Make cache entry, giving precedence to the env variable
- SET(${pkg_UC}_ROOT_DIR "${_dflt_value}" CACHE PATH "Path to ${pkg_UC} directory" FORCE)
+ # Make cache entry
+ SET(${pkg_UC}_ROOT_DIR "${_dflt_value}" CACHE PATH "Path to ${pkg_UC} directory")
##
## 2. Find package - try CONFIG mode first (i.e. looking for XYZ-config.cmake)