diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-11 22:03:03 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-11 22:03:03 +0100 |
commit | 056da8f2412b3e9ca57dc618388d735f867f4dc4 (patch) | |
tree | e7fc0c434b59a2b0cca261237efc7d9b0a0918e6 /external/CMakeLists.txt | |
parent | 41ef07c5092c9d1fad3e06f63ccd0e8e3969e104 (diff) |
fix luajit linux build (MAP_ANON undeclared)
Diffstat (limited to 'external/CMakeLists.txt')
-rw-r--r-- | external/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 6913321f..eba2d4d2 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -220,6 +220,13 @@ if(FLOORMAT_SUBMODULE-DEPENDENCIES) add_subdirectory(sdl2) endfunction() + function(fm_add_luajit) + add_definitions(-UWIN32_LEAN_AND_MEAN) + set(CMAKE_C_STANDARD 11) + set(CMAKE_C_EXTENSIONS 1) + add_subdirectory(luajit) + endfunction() + function(fm_add_libs) set(fm-quiet-message 1) add_subdirectory(fmt) @@ -229,8 +236,7 @@ if(FLOORMAT_SUBMODULE-DEPENDENCIES) add_subdirectory(magnum) add_subdirectory(magnum-plugins) add_subdirectory(magnum-integration) - add_definitions(-UWIN32_LEAN_AND_MEAN) - add_subdirectory(luajit) + fm_add_luajit() endfunction() fm_add_libs() |