Changeset 26584


Ignore:
Timestamp:
2011-04-11T04:11:11+02:00 (7 years ago)
Author:
jow
Message:

[include] cmake.mk: don't assume toolchain binaries in .../bin/ if an external toolchain is used, rely on which instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/cmake.mk

    r25878 r26584  
    44 
    55ifeq ($(CONFIG_CCACHE),) 
     6 ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) 
    67  CMAKE_C_COMPILER:=$(TOOLCHAIN_DIR)/bin/$(TARGET_CC) 
    78  CMAKE_C_COMPILER_ARG1:= 
    89  CMAKE_CXX_COMPILER:=$(TOOLCHAIN_DIR)/bin/$(TARGET_CXX) 
    910  CMAKE_CXX_COMPILER_ARG1:= 
     11 else 
     12  CMAKE_C_COMPILER:=$(shell which $(TARGET_CC)) 
     13  CMAKE_C_COMPILER_ARG1:= 
     14  CMAKE_CXX_COMPILER:=$(shell which $(TARGET_CXX)) 
     15  CMAKE_CXX_COMPILER_ARG1:= 
     16 endif 
    1017else 
    1118  CMAKE_C_COMPILER:=$(STAGING_DIR_HOST)/bin/ccache 
Note: See TracChangeset for help on using the changeset viewer.