This website requires JavaScript.
Explore
Help
Sign In
kolan
/
CMake
Watch
1
Star
0
Fork
You've already forked CMake
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
35413bf2c1
CMake
/
Tests
/
RunCMake
/
find_file
/
RunCMakeTest.cmake
6 lines
73 B
CMake
Raw
Normal View
History
Unescape
Escape
Teach find_(library|file|path) to get prefixes from PATH (#15370) The find_package command already knows how to compute installation prefixes from PATH. Use the same approach to establish prefixes for find_library, find_file, and find_path to use to look in directories like "<prefix>/lib[/<arch>]" and "<prefix>/include" for libraries and headers. This will reduce the amount of configuration end users need to do to establish a work environment rooted under a specific prefix.
2015-02-18 18:54:45 +03:00
include
(
RunCMake
)
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>
2016-05-09 17:06:22 +03:00
if
(
WIN32
OR
CYGWIN
)
run_cmake
(
PrefixInPATH
)
endif
(
)