Skip to content

Commit

Permalink
cmake: Add cmake/introspection.cmake file
Browse files Browse the repository at this point in the history
Github-Pull: #6
Rebased-From: 7b87a48
  • Loading branch information
hebasto committed Feb 24, 2023
1 parent c433eca commit 70c39d3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ else()
endif()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

include(cmake/introspection.cmake)

add_subdirectory(src)

message("\n")
Expand Down
4 changes: 4 additions & 0 deletions cmake/bitcoin-config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@
/* Define to the version of this package. */
#define PACKAGE_VERSION "@PROJECT_VERSION@"

/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN 1

#endif //BITCOIN_CONFIG_H
7 changes: 7 additions & 0 deletions cmake/introspection.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2023 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

include(TestBigEndian)

test_big_endian(WORDS_BIGENDIAN)

0 comments on commit 70c39d3

Please sign in to comment.