Skip to content

Commit 603638f

Browse files
committed
CMake: Move endian check to the config.h module.
The result is only used to generate the header, so it should be grouped with the other checks.
1 parent bbbb6e7 commit 603638f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

prboom2/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ endif()
4949

5050
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
5151

52-
include(CheckBigEndian)
53-
check_big_endian(WORDS_BIGENDIAN)
54-
5552
include(GNUInstallDirs)
5653

5754
if(POLICY CMP0099)

prboom2/cmake/DsdaConfigHeader.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ function(dsda_internal_check_variables)
4949
endfunction()
5050

5151
function(dsda_internal_generate_build_config)
52+
include(CheckBigEndian)
53+
check_big_endian(WORDS_BIGENDIAN)
54+
5255
dsda_internal_check_symbols()
5356
dsda_internal_check_includes()
5457
dsda_internal_check_variables()

0 commit comments

Comments
 (0)