add POSIX check to test on a few systems
This commit is contained in:
@@ -19,6 +19,10 @@ string(TIMESTAMP TODAY "%Y%m%d")
|
|||||||
# way as I am likely to forget to change it later.
|
# way as I am likely to forget to change it later.
|
||||||
set(BUILD_GUI OFF CACHE BOOL "Disable building the graphical version.")
|
set(BUILD_GUI OFF CACHE BOOL "Disable building the graphical version.")
|
||||||
|
|
||||||
|
if (CMAKE_HOST_UNIX)
|
||||||
|
message(STATUS "Build system is POSIX.")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
add_compile_options("/W4" "$<$<CONFIG:RELEASE>:/O2>")
|
add_compile_options("/W4" "$<$<CONFIG:RELEASE>:/O2>")
|
||||||
else()
|
else()
|
||||||
|
|||||||
Reference in New Issue
Block a user