diff options
author | 박세희/동작제어Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com> | 2018-07-23 14:48:34 +0900 |
---|---|---|
committer | GitHub Enterprise <noreply-CODE@samsung.com> | 2018-07-23 14:48:34 +0900 |
commit | a92602661702656fbc7c59137ce7d8898cb96c3d (patch) | |
tree | c7edaa8c8f92fbd562aec707988425fb8fe992a8 /cmake | |
parent | 72c3db7db038d0e928122a00e99f8b668eb3c1b5 (diff) | |
download | nnfw-a92602661702656fbc7c59137ce7d8898cb96c3d.tar.gz nnfw-a92602661702656fbc7c59137ce7d8898cb96c3d.tar.bz2 nnfw-a92602661702656fbc7c59137ce7d8898cb96c3d.zip |
Fix arm rootfs for user installed compilers (#2047)
This will fix sysroot option in cmake configure time try_compile to work correctly
Signed-off-by: SaeHie Park <saehie.park@samsung.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config/config_armv7l-linux.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/config/config_armv7l-linux.cmake b/cmake/config/config_armv7l-linux.cmake index 8e514d410..e092596a2 100644 --- a/cmake/config/config_armv7l-linux.cmake +++ b/cmake/config/config_armv7l-linux.cmake @@ -12,7 +12,7 @@ set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) # where is the target environment set(ROOTFS_ARM $ENV{ROOTFS_ARM}) if(NOT EXISTS "${ROOTFS_ARM}/lib/arm-linux-gnueabihf") - set(ROOTFS_ARM "${CMAKE_SOURCE_DIR}/tools/cross/rootfs/arm") + set(ROOTFS_ARM "${CMAKE_CURRENT_LIST_DIR}/../../tools/cross/rootfs/arm") endif() set(CMAKE_SYSROOT ${ROOTFS_ARM}) |