From 01db1c07fd41db328a29783f30809312e8d38df9 Mon Sep 17 00:00:00 2001 From: Mohammed Alyousef Date: Thu, 22 Feb 2024 19:53:35 +0300 Subject: [PATCH] add workaround to crosscompile issue --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 474affc..b453e1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,10 @@ project( set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) +if (CMAKE_CROSSCOMPILING AND (CMAKE_SYSTEM_NAME EQUAL "Linux")) + set(CMAKE_SYSTEM_VERSION ${CMAKE_HOST_SYSTEM_VERSION}) +endif() + option(CFLTK_BUILD_SHARED "Builds a shared library" OFF) option(USE_SYSTEM_FLTK "Finds and uses the installed FLTK library" OFF) option(CFLTK_USE_OPENGL "Uses OpenGL" OFF)