diff options
author | elfmz <fenix1905@tut.by> | 2022-10-09 16:08:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-09 16:08:41 +0300 |
commit | 43dc9d7e8da2806183dc5981a3dfa2986f69357d (patch) | |
tree | 7eaee9e96c863dc676c63723d0ef387064c46803 /far2l | |
parent | 11cfc80036de3c83e1b909f4b7e244f0b2679d8d (diff) | |
parent | e75dc52f83b875c841805c8042a5f86be538a108 (diff) |
Merge pull request #1368 from klirichek/fix_cmake_debian
Bunch of minor improvement
Diffstat (limited to 'far2l')
-rw-r--r-- | far2l/bootstrap/CMakeLists.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/far2l/bootstrap/CMakeLists.txt b/far2l/bootstrap/CMakeLists.txt index ebeef77e..3a5dd5f2 100644 --- a/far2l/bootstrap/CMakeLists.txt +++ b/far2l/bootstrap/CMakeLists.txt @@ -12,10 +12,13 @@ add_custom_target(bootstrap message(STATUS "generating headers and languages") -# todo: detect architecture 64 or 32 -# LBITS := $(shell getconf LONG_BIT) - -set(DIRBIT 64) +if (CMAKE_SIZEOF_VOID_P EQUAL 8) + set(LBITS 64) + set(DIRBIT 64) +else () + set(LBITS 32) + set(DIRBIT 32) +endif () set(BOOTSTRAP "${PROJECT_BINARY_DIR}/bootstrap") set(SCRIPTS "${CMAKE_CURRENT_SOURCE_DIR}/scripts") |