Properly handle CMake options that are enabled but not "ON"

Contributes to CURA-2787
This commit is contained in:
Arjen Hiemstra 2017-03-06 17:24:53 +01:00
parent d1fada78e6
commit 8a77dd66fc
2 changed files with 4 additions and 1 deletions

View file

@ -3,4 +3,4 @@
CuraVersion = "@CURA_VERSION@"
CuraBuildType = "@CURA_BUILDTYPE@"
CuraDebugMode = True if "@CURA_DEBUGMODE@" == "ON" else False
CuraDebugMode = True if "@_cura_debugmode@" == "ON" else False