Skip to content

Commit

Permalink
fixed linking error in release mode with msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieBreeg committed Feb 23, 2023
1 parent 69e0591 commit a6ce21a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a6ce21a

Please sign in to comment.