Skip to content

Commit

Permalink
Handle Mingw environment
Browse files Browse the repository at this point in the history
  • Loading branch information
hmartinez82 authored and 10110111 committed Oct 3, 2023
1 parent 480fea3 commit 95e5d97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ if(Eigen3_ADDED)
endif()
include_directories(${CMAKE_BINARY_DIR})

if(WIN32)
if(WIN32 AND (NOT MINGW))
set(shadersDestPath "${CMAKE_PROJECT_NAME}")
set(installBinDir "${CMAKE_PROJECT_NAME}")
set(installLibDir "${installBinDir}")
Expand Down
2 changes: 1 addition & 1 deletion ShowMySky/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if(${QT_VERSION} STREQUAL 6)
endif()

set_target_properties(${showmyskyTarget} PROPERTIES OUTPUT_NAME showmysky)
if(WIN32)
if(WIN32 AND (NOT MINGW))
# Default subsystem is console. We don't want the console window to appear, so tweak linker parameters.
set_target_properties(${showmyskyTarget} PROPERTIES LINK_FLAGS "/SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup")
endif()
Expand Down

0 comments on commit 95e5d97

Please sign in to comment.