Skip to content

Commit

Permalink
Use base64 library by @aklomp
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ekk0ek committed Nov 10, 2023
1 parent e603622 commit f3a12f3
Show file tree
Hide file tree
Showing 3 changed files with 784 additions and 150 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ endif()
option(BUILD_TESTING "Build the testing tree." OFF)
option(BUILD_DOCUMENTATION "Build documentation." OFF)

if(CMAKE_VERSION VERSION_LESS 3.20)
# CMAKE_<LANG>_BYTE_ORDER was added in version 3.20. Mimic the option in
# prior versions.
include(TestBigEndian)
test_big_endian(BIG_ENDIAN)
if(BIG_ENDIAN)
set(CMAKE_C_BYTE_ORDER "BIG_ENDIAN")
else()
set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")
endif()
endif()
include(CheckIncludeFile)
include(CheckCCompilerFlag)
include(GenerateExportHeader)
Expand Down Expand Up @@ -216,6 +227,7 @@ foreach(match ${matches})
endforeach()

file(GENERATE OUTPUT config.h CONTENT "${template}")
configure_file(src/fallback/endian.h.in src/fallback/endian.h @ONLY)


if(BUILD_TESTING)
Expand Down
Loading

0 comments on commit f3a12f3

Please sign in to comment.