diff --git a/CMakeLists.txt b/CMakeLists.txt index 795f83e..fe0a741 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,8 @@ add_executable(glExplorer if(${WIN32} AND NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug") if(${MSVC}) target_link_options(glExplorer PRIVATE /SUBSYSTEM:WINDOWS) - else() + target_compile_definitions(glExplorer PRIVATE main=WinMain) + else() target_link_options(glExplorer PRIVATE -mwindows) endif(${MSVC}) target_sources(glExplorer PRIVATE res.rc)