From 6fda85c5690994c2ebf4ef12140f73fd91a9829d Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 19 Jun 2024 00:59:00 +0100 Subject: [PATCH] Cleanup: Remove CMake endian detection. --- CMakeLists.txt | 3 --- cmake/Endian.cmake | 14 -------------- src/strgen/CMakeLists.txt | 3 --- 3 files changed, 20 deletions(-) delete mode 100644 cmake/Endian.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 59e95e435e..90f0f1a738 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,9 +51,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS YES) # An empty target for the tools add_custom_target(tools) -include(Endian) -add_endian_definition() - include(CompileFlags) compile_flags() diff --git a/cmake/Endian.cmake b/cmake/Endian.cmake deleted file mode 100644 index 3bfba653ca..0000000000 --- a/cmake/Endian.cmake +++ /dev/null @@ -1,14 +0,0 @@ -# Add the definitions to indicate which endian we are building for. -# -# add_endian_definition() -# -function(add_endian_definition) - include(TestBigEndian) - TEST_BIG_ENDIAN(IS_BIG_ENDIAN) - - if(IS_BIG_ENDIAN) - add_definitions(-DTTD_ENDIAN=TTD_BIG_ENDIAN) - else() - add_definitions(-DTTD_ENDIAN=TTD_LITTLE_ENDIAN) - endif() -endfunction() diff --git a/src/strgen/CMakeLists.txt b/src/strgen/CMakeLists.txt index 2a8631d51c..554a9db20a 100644 --- a/src/strgen/CMakeLists.txt +++ b/src/strgen/CMakeLists.txt @@ -16,9 +16,6 @@ if (NOT HOST_BINARY_DIR) add_definitions(-DSTRGEN) add_executable(strgen ${sourcefiles}) - include(Endian) - add_endian_definition() - export(TARGETS strgen FILE ${CMAKE_BINARY_DIR}/strgen.cmake) add_dependencies(tools strgen) endif()