build: use CMAKE_SOURCE_SUBDIR variable to cmake.mk
Sometimes, the CMakeLists.txt file is not in the root directory of a repo. In those cases, the CMAKE_SOURCE_SUBDIR variable can be specified to use CMakeLists.txt from a subdirectory instead. Signed-off-by: Amol Bhave <ambhave@fb.com>
This commit is contained in:
		 Amol Bhave
					Amol Bhave
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							bbf46c9f8f
						
					
				
				
					commit
					366e6ef5c3
				
			| @@ -7,8 +7,8 @@ ifneq ($(findstring c,$(OPENWRT_VERBOSE)),) | |||||||
| endif | endif | ||||||
|  |  | ||||||
| CMAKE_BINARY_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR)) | CMAKE_BINARY_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_BINARY_SUBDIR),/$(CMAKE_BINARY_SUBDIR)) | ||||||
| CMAKE_SOURCE_DIR = $(PKG_BUILD_DIR) | CMAKE_SOURCE_DIR = $(PKG_BUILD_DIR)$(if $(CMAKE_SOURCE_SUBDIR),/$(CMAKE_SOURCE_SUBDIR)) | ||||||
| HOST_CMAKE_SOURCE_DIR = $(HOST_BUILD_DIR) | HOST_CMAKE_SOURCE_DIR = $(HOST_BUILD_DIR)$(if $(CMAKE_SOURCE_SUBDIR),/$(CMAKE_SOURCE_SUBDIR)) | ||||||
| MAKE_PATH = $(firstword $(CMAKE_BINARY_SUBDIR) .) | MAKE_PATH = $(firstword $(CMAKE_BINARY_SUBDIR) .) | ||||||
|  |  | ||||||
| ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) | ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user