@ -29,7 +29,6 @@ endif()
if ( WIN32 )
set ( CMAKE_CXX_STANDARD 17 )
ENABLE_LANGUAGE ( RC )
add_compile_options ( -Wno-format )
else ( )
set ( CMAKE_CXX_STANDARD 14 )
endif ( WIN32 )
@ -41,8 +40,7 @@ if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND SHADOW)
message ( FATAL_ERROR "shadow-framework is Linux only" )
endif ( NOT ${ CMAKE_SYSTEM_NAME } MATCHES "Linux" AND SHADOW )
# m i g h t b e r e d u n d a n t . W a i t i n g o n n e w 2 U b l a d e t o s p i n u p n e w
# l u n i x b o x - r i c k
# m i g h t b e r e d u n d a n t . - r i c k
if ( STATIC_LINK_RUNTIME AND SHADOW )
message ( FATAL_ERROR "the shadow-framework build cannot be linked statically!" )
endif ( STATIC_LINK_RUNTIME AND SHADOW )
@ -50,7 +48,6 @@ endif(STATIC_LINK_RUNTIME AND SHADOW)
if ( WIN32 AND NOT STATIC_LINK_RUNTIME )
message ( "must ship compiler runtime libraries with this build: libwinpthread-1.dll, libgcc_s_dw2-1.dll, and libstdc++-6.dll" )
message ( "for release builds, turn on STATIC_LINK_RUNTIME in cmake options" )
# set ( STATIC_LINK_RUNTIME ON )
endif ( WIN32 AND NOT STATIC_LINK_RUNTIME )
add_subdirectory ( vendor/nlohmann )
@ -159,8 +156,8 @@ if(ASAN)
endif ( ASAN )
if ( SHADOW )
set ( WITH_STATIC OFF )
set ( WITH_SHARED ON )
add_compile_options ( -fPIC )
if ( "${SHADOW_ROOT}" STREQUAL "" )
set ( SHADOW_ROOT "$ENV{HOME}/.shadow" )
endif ( "${SHADOW_ROOT}" STREQUAL "" )