Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolse committed May 23, 2024
1 parent 038d1c4 commit 694ad83
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 12 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,17 @@ include(AddTest)
option(BEAM_CPP_20_STANDARD "Build wallet with C++20 standard" OFF)
message("BEAM_CPP_20_STANDARD is ${BEAM_CPP_20_STANDARD}")


if (BEAM_CPP_20_STANDARD)
set(CMAKE_CXX_STANDARD 20)
target_compile_features(beam INTERFACE cxx_std_20)
set(BEAM_INTERFACE_STANDARD, cxx_std_20)
else()
set(CMAKE_CXX_STANDARD 17)
target_compile_features(beam INTERFACE cxx_std_17)
set(BEAM_INTERFACE_STANDARD, cxx_std_17)
endif()

target_compile_features(beam INTERFACE ${BEAM_INTERFACE_STANDARD})

set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(BEAM_USE_AVX FALSE)
Expand Down
2 changes: 1 addition & 1 deletion utility/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if (MSVC)
endif()

add_library(utility STATIC ${UTILITY_SRC} ${IO_SRC})
target_compile_features(utility PUBLIC cxx_std_20)
target_compile_features(utility PUBLIC ${BEAM_INTERFACE_STANDARD})

if (NOT EMSCRIPTEN)
add_library(cli STATIC ${CLI_SRC})
Expand Down
4 changes: 2 additions & 2 deletions wallet/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ target_link_libraries(wallet_client_no_ipfs
PRIVATE http
)

target_compile_features(wallet_client PUBLIC cxx_std_20)
target_compile_features(wallet_client_no_ipfs PUBLIC cxx_std_20)
target_compile_features(wallet_client PUBLIC ${BEAM_INTERFACE_STANDARD})
target_compile_features(wallet_client_no_ipfs PUBLIC ${BEAM_INTERFACE_STANDARD})

add_subdirectory(extensions)

Expand Down
2 changes: 1 addition & 1 deletion wallet/client/extensions/broadcast_gateway/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ target_link_libraries(broadcast_gateway
wallet_core
)

target_compile_features(broadcast_gateway PUBLIC cxx_std_20)
target_compile_features(broadcast_gateway PUBLIC ${BEAM_INTERFACE_STANDARD})

2 changes: 1 addition & 1 deletion wallet/client/extensions/dex_board/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ target_link_libraries(dex_board
wallet
)

target_compile_features(dex_board PUBLIC cxx_std_20)
target_compile_features(dex_board PUBLIC ${BEAM_INTERFACE_STANDARD})

2 changes: 1 addition & 1 deletion wallet/client/extensions/export/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ if(BEAM_ATOMIC_SWAP_SUPPORT)
target_compile_definitions(export PUBLIC BEAM_ATOMIC_SWAP_SUPPORT)
endif()

target_compile_features(export PUBLIC cxx_std_20)
target_compile_features(export PUBLIC ${BEAM_INTERFACE_STANDARD})

2 changes: 1 addition & 1 deletion wallet/client/extensions/news_channels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ target_link_libraries(news_channels
wallet_core
)

target_compile_features(news_channels PUBLIC cxx_std_20)
target_compile_features(news_channels PUBLIC ${BEAM_INTERFACE_STANDARD})

2 changes: 1 addition & 1 deletion wallet/client/extensions/notifications/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ target_link_libraries(notifications
wallet_core
)

target_compile_features(notifications PUBLIC cxx_std_20)
target_compile_features(notifications PUBLIC ${BEAM_INTERFACE_STANDARD})

2 changes: 1 addition & 1 deletion wallet/client/extensions/offers_board/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ target_link_libraries(swap_offers_board
wallet
)

target_compile_features(swap_offers_board PUBLIC cxx_std_20)
target_compile_features(swap_offers_board PUBLIC ${BEAM_INTERFACE_STANDARD})

2 changes: 1 addition & 1 deletion wallet/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ target_link_libraries(wallet_core
sqlite
)

target_compile_features(wallet_core PUBLIC cxx_std_20)
target_compile_features(wallet_core PUBLIC ${BEAM_INTERFACE_STANDARD})


if (NOT ANDROID AND NOT IOS)
Expand Down

0 comments on commit 694ad83

Please sign in to comment.