diff --git a/examples/mobc/CMakeLists.txt b/examples/mobc/CMakeLists.txt index 772eebac..b202be26 100644 --- a/examples/mobc/CMakeLists.txt +++ b/examples/mobc/CMakeLists.txt @@ -34,9 +34,8 @@ set(C2A_USER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/src_user) include_directories(src) # Output debug print to SILS console window -option(SHOW_DEBUG_PRINT_ON_SILS "Show debug print") -set(SHOW_DEBUG_PRINT_ON_SILS ON) -if(SHOW_DEBUG_PRINT_ON_SILS) +option(C2A_SHOW_DEBUG_PRINT_ON_SILS "Show debug print" ON) +if(C2A_SHOW_DEBUG_PRINT_ON_SILS) add_definitions(-DSHOW_DEBUG_PRINT_ON_SILS) message("Show debug print") endif() diff --git a/examples/subobc/CMakeLists.txt b/examples/subobc/CMakeLists.txt index 6d50ab1c..48c346bd 100644 --- a/examples/subobc/CMakeLists.txt +++ b/examples/subobc/CMakeLists.txt @@ -32,9 +32,8 @@ set(C2A_USER_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/src_user) include_directories(src) # Output debug print to SILS console window -option(SHOW_DEBUG_PRINT_ON_SILS "Show debug print") -set(SHOW_DEBUG_PRINT_ON_SILS ON) -if(SHOW_DEBUG_PRINT_ON_SILS) +option(C2A_SHOW_DEBUG_PRINT_ON_SILS "Show debug print" ON) +if(C2A_SHOW_DEBUG_PRINT_ON_SILS) add_definitions(-DSHOW_DEBUG_PRINT_ON_SILS) message("Show debug print") endif()