nc: protect against multiple invokations
This commit is contained in:
parent
dd58dbde82
commit
d106a052a1
@ -1,3 +1,12 @@
|
|||||||
|
###############################################################################
|
||||||
|
if (__nc_cxx)
|
||||||
|
return ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
set (__nc_cxx TRUE)
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
include (compile_flag)
|
include (compile_flag)
|
||||||
include (test_restrict)
|
include (test_restrict)
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
###############################################################################
|
||||||
|
if (__nc_optimisation)
|
||||||
|
return()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
set (__nc_optimisation TRUE)
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
include (compile_flag)
|
include (compile_flag)
|
||||||
include (link_flag)
|
include (link_flag)
|
||||||
include (canonical_host)
|
include (canonical_host)
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
###############################################################################
|
||||||
|
if (__nc_platform)
|
||||||
|
return ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
set (__nc_platform TRUE)
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
include (compile_flag)
|
include (compile_flag)
|
||||||
include (link_flag)
|
include (link_flag)
|
||||||
|
|
||||||
|
@ -1,5 +1,16 @@
|
|||||||
|
###############################################################################
|
||||||
|
if (__nc_warnings)
|
||||||
|
return ()
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
set (__nc_warnings TRUE)
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
include (compile_flag)
|
include (compile_flag)
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
append_compile_flag(-Wall)
|
append_compile_flag(-Wall)
|
||||||
append_compile_flag(-Wextra)
|
append_compile_flag(-Wextra)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user