Skip to content

Commit

Permalink
fix preprocessor w/o console
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Sep 28, 2022
1 parent ecc6030 commit 97b7d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/Tutorial_203_Viewer_wxWidgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 97b7d94

Please sign in to comment.