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 mtahafiroz@gmail.com
This commit is contained in:
Mohammad Taha Bin Firoz
2022-09-02 18:41:13 +05:00
committed by GitHub
parent b2e75e4be3
commit 56d0513a88
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -7,3 +7,4 @@
Sony Group Corporation
Michael Lamers (info@devmil.de)
Andrea Daoud (andreadaoud6@gmail.com)
Taha Firoz (mtahafiroz@gmail.com)
+2 -1
View File
@@ -1,4 +1,6 @@
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)
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:
# fatal error: 'bits/c++config.h' file not found
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_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)