mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-07 15:20:31 +00:00
0b4d787042
- Multi-stage docker build (final image only 15MB!) - Build in release mode - Fix bug with release mode - Fix compiler being dumb AF - Disable FORTIFY for now - Enable LTO when making a staticly linked release - Fix some gcc specific warnings - Refactor cmake stuff into multiple files
19 lines
626 B
CMake
19 lines
626 B
CMake
set(WITH_STATIC OFF)
|
|
set(WITH_SHARED ON)
|
|
if("${SHADOW_ROOT}" STREQUAL "")
|
|
set(SHADOW_ROOT "$ENV{HOME}/.shadow")
|
|
endif("${SHADOW_ROOT}" STREQUAL "")
|
|
if(EXISTS "${SHADOW_ROOT}")
|
|
message(STATUS "SHADOW_ROOT = ${SHADOW_ROOT}")
|
|
else()
|
|
message(FATAL_ERROR "SHADOW_ROOT path does not exist: '${SHADOW_ROOT}'")
|
|
endif(EXISTS "${SHADOW_ROOT}")
|
|
|
|
set(CMAKE_MODULE_PATH "${SHADOW_ROOT}/share/cmake/Modules")
|
|
include_directories(${CMAKE_MODULE_PATH})
|
|
include(ShadowTools)
|
|
add_compile_options(-fno-inline -fno-strict-aliasing )
|
|
add_definitions(-DTESTNET=1)
|
|
add_definitions(-DSHADOW_TESTNET)
|
|
include_directories(${SHADOW_ROOT}/include)
|