diff options
author | Vincent ABRIOU <vincent.abriou@st.com> | 2020-09-03 13:02:43 +0200 |
---|---|---|
committer | finn.williams <finn.williams@arm.com> | 2020-09-09 15:26:03 +0000 |
commit | 54940191dfe3a405dcc0fdf6516849082ae62cc7 (patch) | |
tree | 440e289b6bbaead995ad1140f50db39d04fb99a8 /cmake/GlobalConfig.cmake | |
parent | 2280bb550d63d37c3de9122fd96447a47b17060a (diff) | |
download | armnn-54940191dfe3a405dcc0fdf6516849082ae62cc7.tar.gz |
fix cxxopts and ghc cross compilation issue
While cross compiling using openembedded yocto environment,
CXXOPTS_INCLUDE and GHC_INCLUDE variables remains empty because the search
path point to the openembedded sysroot instead of the current directory.
To avoid this situation, NO_CMAKE_FIND_ROOT_PATH must be added to the
find_path call.
Signed-off-by: Vincent ABRIOU <vincent.abriou@st.com>
Change-Id: I3ba17a300d5ca7fbc58b6ec5c4eb15267dcee228
Diffstat (limited to 'cmake/GlobalConfig.cmake')
-rw-r--r-- | cmake/GlobalConfig.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake index cc44efdd0b..1db0025daa 100644 --- a/cmake/GlobalConfig.cmake +++ b/cmake/GlobalConfig.cmake @@ -142,13 +142,13 @@ endif() if (NOT BUILD_PIPE_ONLY) # cxxopts (Alternative to boost::program_options) - find_path(CXXOPTS_INCLUDE cxxopts/cxxopts.hpp PATHS third-party) + find_path(CXXOPTS_INCLUDE cxxopts/cxxopts.hpp PATHS third-party NO_CMAKE_FIND_ROOT_PATH) include_directories(SYSTEM "${CXXOPTS_INCLUDE}") endif() if (NOT BUILD_PIPE_ONLY) # ghc (Alternative to boost::filesystem) - find_path(GHC_INCLUDE ghc/filesystem.hpp PATHS third-party) + find_path(GHC_INCLUDE ghc/filesystem.hpp PATHS third-party NO_CMAKE_FIND_ROOT_PATH) include_directories(SYSTEM "${GHC_INCLUDE}") endif() |