broken cross compile work around added (#129)
* broken cross compile work around added * Added comments for context * Move CMAKE_FIND_ROOT_PATH_MODE_PROGRAM before project to prevent make from sysroot being used. Signed-off-by: Taha Firoz [email protected]
This commit is contained in:
@@ -7,3 +7,4 @@
|
|||||||
Sony Group Corporation
|
Sony Group Corporation
|
||||||
Michael Lamers ([email protected])
|
Michael Lamers ([email protected])
|
||||||
Andrea Daoud ([email protected])
|
Andrea Daoud ([email protected])
|
||||||
|
Taha Firoz ([email protected])
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
cmake_minimum_required(VERSION 3.15)
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
# stop cmake from taking make from CMAKE_SYSROOT
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
project(runner LANGUAGES CXX)
|
project(runner LANGUAGES CXX)
|
||||||
|
|
||||||
set(BINARY_NAME "{{projectName}}")
|
set(BINARY_NAME "{{projectName}}")
|
||||||
@@ -10,7 +12,6 @@ set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
|
|||||||
# Basically we use this include when we got the following error:
|
# Basically we use this include when we got the following error:
|
||||||
# fatal error: 'bits/c++config.h' file not found
|
# fatal error: 'bits/c++config.h' file not found
|
||||||
include_directories(SYSTEM ${FLUTTER_SYSTEM_INCLUDE_DIRECTORIES})
|
include_directories(SYSTEM ${FLUTTER_SYSTEM_INCLUDE_DIRECTORIES})
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||||
|
|||||||
Reference in New Issue
Block a user