diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6389a06..53dc23c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -35,7 +35,6 @@ option(DOCTOR_PILL_GUI "Enable gui qml model for build" ON)
 option(DOCTOR_PILL_TESTS "Enable tests of this library" ON)
 option(DOCTOR_PILL_EXAMPLE "Enable example app of this library" ON)
 
-
 SET(TARGET_DIR "${CMAKE_SOURCE_DIR}/Distro")
 file(MAKE_DIRECTORY ${TARGET_DIR})
 
@@ -58,7 +57,7 @@ endif()
 initAll()
 
 if (DOCTOR_PILL_GUI)
-    add_definitions(-DDOCTOR_PILL_GUI ON)
+    add_definitions(-DDOCTOR_PILL_GUI)
 else()
     set(DOCTOR_PILL_EXAMPLE OFF)
 endif()