add POSIX check to test on a few systems

This commit is contained in:
Kyle Isom 2023-10-11 19:14:10 -07:00
parent 379cfe1460
commit 187ff6cb01
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ string(TIMESTAMP TODAY "%Y%m%d")
# way as I am likely to forget to change it later.
set(BUILD_GUI OFF CACHE BOOL "Disable building the graphical version.")
if (CMAKE_HOST_UNIX)
message(STATUS "Build system is POSIX.")
endif()
if(MSVC)
add_compile_options("/W4" "$<$<CONFIG:RELEASE>:/O2>")
else()