diff options
author | Brad King <brad.king@kitware.com> | 2012-11-26 21:44:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-11-26 21:46:04 (GMT) |
commit | b96f6fc2aabed8a77cd45c0f87af7abb6a687576 (patch) | |
tree | c97047b70e55b785795d1ab7e38e42c8c8c85402 /Source/cmFindPathCommand.cxx | |
parent | e5748521206e1f240d495d1ec3b2ccd31611f081 (diff) | |
download | CMake-b96f6fc2aabed8a77cd45c0f87af7abb6a687576.zip CMake-b96f6fc2aabed8a77cd45c0f87af7abb6a687576.tar.gz CMake-b96f6fc2aabed8a77cd45c0f87af7abb6a687576.tar.bz2 |
Teach find_(path|file) about Linux multiarch (#13742)
Implement support for multiarch include directories as specified here:
https://wiki.ubuntu.com/MultiarchCross
Generalize the multiarch feature added in commit b41ad3b3 (Teach
find_(library|package) about Linux multiarch, 2011-06-08) to the
find_path and find_file commands. Teach them to search
<prefix>/include/<arch> whenever they would search <prefix>/include.
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r-- | Source/cmFindPathCommand.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx index 9524924..6a43298 100644 --- a/Source/cmFindPathCommand.cxx +++ b/Source/cmFindPathCommand.cxx @@ -45,8 +45,10 @@ void cmFindPathCommand::GenerateDocumentation() "SEARCH_XXX", "file in a directory"); cmSystemTools::ReplaceString(this->GenericDocumentation, "XXX_SUBDIR", "include"); - cmSystemTools::ReplaceString(this->GenericDocumentation, - "XXX_EXTRA_PREFIX_ENTRY", ""); + cmSystemTools::ReplaceString( + this->GenericDocumentation, + "XXX_EXTRA_PREFIX_ENTRY", + " <prefix>/include/<arch> if CMAKE_LIBRARY_ARCHITECTURE is set, and\n"); cmSystemTools::ReplaceString(this->GenericDocumentation, "CMAKE_FIND_ROOT_PATH_MODE_XXX", "CMAKE_FIND_ROOT_PATH_MODE_INCLUDE"); |