cmake: add a status message which MONITOR_ZOOM is used
This commit is contained in:
parent
726f759ca4
commit
6567a67aef
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ add_executable(infinisim main.cpp ${SOURCES} ${INCLUDES})
|
|||
|
||||
set(MONITOR_ZOOM 1 CACHE STRING "Scale simulator window by this factor")
|
||||
if(MONITOR_ZOOM MATCHES "^[0-9]\.?[0-9]*")
|
||||
message(STATUS "Using MONITOR_ZOOM=${MONITOR_ZOOM}")
|
||||
target_compile_definitions(infinisim PRIVATE MONITOR_ZOOM=${MONITOR_ZOOM})
|
||||
else()
|
||||
message(FATAL_ERROR "variable MONITOR_ZOOM=${MONITOR_ZOOM} must be a positive number")
|
||||
|
|
Loading…
Reference in a new issue