Moving setting property before usage.
This commit is contained in:
parent
ce1941282b
commit
b6cd0e98ea
1 changed files with 4 additions and 5 deletions
|
@ -208,6 +208,10 @@ add_library (node
|
|||
rai/node/working.hpp
|
||||
rai/node/xorshift.hpp)
|
||||
|
||||
|
||||
SET (ACTIVE_NETWORK rai_live_network CACHE STRING "Selects which network parameters are used")
|
||||
set_property (CACHE ACTIVE_NETWORK PROPERTY STRINGS rai_test_network rai_beta_network rai_live_network)
|
||||
|
||||
if (RAIBLOCKS_TEST)
|
||||
add_executable (core_test
|
||||
rai/core_test/block.cpp
|
||||
|
@ -232,16 +236,11 @@ if (RAIBLOCKS_TEST)
|
|||
|
||||
add_executable (slow_test
|
||||
rai/slow_test/node.cpp)
|
||||
|
||||
SET (ACTIVE_NETWORK rai_test_network CACHE STRING "Selects which network parameters are used")
|
||||
|
||||
set_target_properties (core_test slow_test PROPERTIES COMPILE_FLAGS "${PLATFORM_CXX_FLAGS} ${PLATFORM_COMPILE_FLAGS} -DQT_NO_KEYWORDS -DACTIVE_NETWORK=${ACTIVE_NETWORK} -DRAIBLOCKS_VERSION_MAJOR=${CPACK_PACKAGE_VERSION_MAJOR} -DRAIBLOCKS_VERSION_MINOR=${CPACK_PACKAGE_VERSION_MINOR} -DBOOST_ASIO_HAS_STD_ARRAY=1 -DRAIBLOCKS_VERSION_PATCH=${CPACK_PACKAGE_VERSION_PATCH}")
|
||||
set_target_properties (core_test slow_test PROPERTIES LINK_FLAGS "${PLATFORM_LINK_FLAGS}")
|
||||
endif (RAIBLOCKS_TEST)
|
||||
|
||||
SET (ACTIVE_NETWORK rai_live_network CACHE STRING "Selects which network parameters are used")
|
||||
set_property (CACHE ACTIVE_NETWORK PROPERTY STRINGS rai_test_network rai_beta_network rai_live_network)
|
||||
|
||||
if (RAIBLOCKS_GUI)
|
||||
|
||||
qt5_add_resources(RES resources.qrc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue