Skip to content

Commit 7b87a48

Browse files
committed
cmake: Add cmake/introspection.cmake file
1 parent 3bc91d2 commit 7b87a48

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ else()
5858
endif()
5959
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
6060

61+
include(cmake/introspection.cmake)
62+
6163
add_subdirectory(src)
6264

6365
message("\n")

cmake/bitcoin-config.h.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,8 @@
4242
/* Define to the version of this package. */
4343
#define PACKAGE_VERSION "@PROJECT_VERSION@"
4444

45+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
46+
significant byte first (like Motorola and SPARC, unlike Intel). */
47+
#cmakedefine WORDS_BIGENDIAN 1
48+
4549
#endif //BITCOIN_CONFIG_H

cmake/introspection.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Copyright (c) 2023 The Bitcoin Core developers
2+
# Distributed under the MIT software license, see the accompanying
3+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
4+
5+
include(TestBigEndian)
6+
7+
test_big_endian(WORDS_BIGENDIAN)

0 commit comments

Comments
 (0)