26 lines
786 B
CMake
26 lines
786 B
CMake
|
include (compile_flag)
|
||
|
include (test_restrict)
|
||
|
|
||
|
|
||
|
###############################################################################
|
||
|
append_compile_flag (-std=c++1z)
|
||
|
|
||
|
|
||
|
###############################################################################
|
||
|
# find the gcc experimental filesystem library and append to libs if needed
|
||
|
find_library(STDCXXFS NAMES stdc++fs)
|
||
|
if (STDCXXFS)
|
||
|
set(LIBS ${LIBS} ${STDCXXFS})
|
||
|
endif (STDCXXFS)
|
||
|
|
||
|
|
||
|
###############################################################################
|
||
|
test_restrict(RESTRICT_KEYWORD)
|
||
|
add_definitions("-Drestrict=${RESTRICT_KEYWORD}")
|
||
|
|
||
|
|
||
|
###############################################################################
|
||
|
append_compile_flag("-pipe")
|
||
|
append_compile_flag("-fno-deduce-init-list")
|
||
|
append_compile_flag("-fvisibility=hidden")
|