diff --git a/tutorials/Tutorial_203_Viewer_wxWidgets/CMakeLists.txt b/tutorials/Tutorial_203_Viewer_wxWidgets/CMakeLists.txt index e105140b6..4c88b2071 100644 --- a/tutorials/Tutorial_203_Viewer_wxWidgets/CMakeLists.txt +++ b/tutorials/Tutorial_203_Viewer_wxWidgets/CMakeLists.txt @@ -47,10 +47,10 @@ if (WIN32 OR MSVC) list(APPEND SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Resources/sample.rc) # Include a RC file for windows if (WIN32_wxWidget_Viewer_No_Console) add_executable(${PROJECT_NAME} WIN32 ${SRC_FILES}) + target_compile_definitions(${PROJECT_NAME} PRIVATE WIN32_VIEWER_WITHOUT_CONSOLE) message(STATUS "Creating the wxWidgets viewer without a console window") else () add_executable(${PROJECT_NAME} ${SRC_FILES}) - target_compile_definitions(${PROJECT_NAME} PRIVATE WIN32_VIEWER_WITHOUT_CONSOLE) message(STATUS "Creating the wxWidgets viewer with a console window") endif () elseif (APPLE)