mirror of https://github.com/OpenTTD/OpenTTD
Cleanup: Remove CMake endian detection.
parent
fb6781015a
commit
6fda85c569
|
@ -51,9 +51,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS YES)
|
||||||
# An empty target for the tools
|
# An empty target for the tools
|
||||||
add_custom_target(tools)
|
add_custom_target(tools)
|
||||||
|
|
||||||
include(Endian)
|
|
||||||
add_endian_definition()
|
|
||||||
|
|
||||||
include(CompileFlags)
|
include(CompileFlags)
|
||||||
compile_flags()
|
compile_flags()
|
||||||
|
|
||||||
|
|
|
@ -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()
|
|
|
@ -16,9 +16,6 @@ if (NOT HOST_BINARY_DIR)
|
||||||
add_definitions(-DSTRGEN)
|
add_definitions(-DSTRGEN)
|
||||||
add_executable(strgen ${sourcefiles})
|
add_executable(strgen ${sourcefiles})
|
||||||
|
|
||||||
include(Endian)
|
|
||||||
add_endian_definition()
|
|
||||||
|
|
||||||
export(TARGETS strgen FILE ${CMAKE_BINARY_DIR}/strgen.cmake)
|
export(TARGETS strgen FILE ${CMAKE_BINARY_DIR}/strgen.cmake)
|
||||||
add_dependencies(tools strgen)
|
add_dependencies(tools strgen)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue