diff options
author | Brad King <brad.king@kitware.com> | 2016-05-09 14:06:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-09 16:58:08 (GMT) |
commit | b30b32a4931080280680aa5b439c0d4918553c56 (patch) | |
tree | 15bee4c60f6311fd73d60a0e98a90bcd89a17ffc /Help/release | |
parent | 3ecdddfc35a0f0ecc1495d902f34d9cee2d59459 (diff) | |
download | CMake-b30b32a4931080280680aa5b439c0d4918553c56.zip CMake-b30b32a4931080280680aa5b439c0d4918553c56.tar.gz CMake-b30b32a4931080280680aa5b439c0d4918553c56.tar.bz2 |
Drop find_(library|file|path) prefixes from PATH on non-Windows
Since commit v3.3.0-rc1~430^2 (Teach find_(library|file|path) to get
prefixes from PATH, 2015-02-18) we search in <prefix>/include and
<prefix>/lib directories for prefixes with bin directories in the PATH
environment variable. The motivation was to support MSYS, MinGW and
similar Windows platforms in their default environments automatically.
At the time this behavior was thought to be worthwhile in general.
Suggested-by: Chuck Atkins <chuck.atkins@kitware.com>
Diffstat (limited to 'Help/release')
-rw-r--r-- | Help/release/dev/find-command-prefix-from-PATH-windows-only.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Help/release/dev/find-command-prefix-from-PATH-windows-only.rst b/Help/release/dev/find-command-prefix-from-PATH-windows-only.rst new file mode 100644 index 0000000..be6eb3e --- /dev/null +++ b/Help/release/dev/find-command-prefix-from-PATH-windows-only.rst @@ -0,0 +1,12 @@ +find-command-prefix-from-PATH-windows-only +------------------------------------------ + +* The :command:`find_library`, :command:`find_path`, and :command:`find_file` + commands no longer search in installation prefixes derived from the ``PATH`` + environment variable on non-Windows platforms. This behavior was added in + CMake 3.3 to support Windows hosts but has proven problematic on UNIX hosts. + Users that keep some ``<prefix>/bin`` directories in the ``PATH`` just for + their tools do not necessarily want any supporting ``<prefix>/lib`` + directories searched. One may set the ``CMAKE_PREFIX_PATH`` environment + variable with a :ref:`;-list <CMake Language Lists>` of prefixes that are + to be searched. |