Changeset 44825


Ignore:
Timestamp:
2015-03-16T08:51:45+01:00 (3 years ago)
Author:
nbd
Message:

cmake: include external toolchain directory in CMAKE_FIND_ROOT_PATH (fixes #19074)

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cmake.mk

    r44328 r44825  
    3232CMAKE_RANLIB:=$(call cmake_tool,$(TARGET_RANLIB)) 
    3333 
     34CMAKE_FIND_ROOT_PATH:=$(STAGING_DIR);$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT)) 
     35 
    3436define Build/Configure/Default 
    3537        (cd $(PKG_BUILD_DIR); \ 
     
    5456                        -DCMAKE_NM="$(CMAKE_NM)" \ 
    5557                        -DCMAKE_RANLIB="$(CMAKE_RANLIB)" \ 
    56                         -DCMAKE_FIND_ROOT_PATH="$(STAGING_DIR);$(TOOLCHAIN_DIR)" \ 
     58                        -DCMAKE_FIND_ROOT_PATH="$(CMAKE_FIND_ROOT_PATH)" \ 
    5759                        -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=BOTH \ 
    5860                        -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \ 
Note: See TracChangeset for help on using the changeset viewer.