Skip to content

Commit

Permalink
add workaround to crosscompile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Feb 22, 2024
1 parent 0a4f6d1 commit 01db1c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 01db1c0

Please sign in to comment.