Skip to content

Commit

Permalink
Build openscad.exe for windows subsystem (GUI, not console).
Browse files Browse the repository at this point in the history
  • Loading branch information
thehans committed Feb 28, 2019
1 parent 4955b37 commit a9c59b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ elseif(UNIX)
set_target_properties(OpenSCAD PROPERTIES
OUTPUT_NAME openscad
)
elseif(MSVC)
set_target_properties(OpenSCAD PROPERTIES
LINK_FLAGS "-subsystem:windows -ENTRY:mainCRTStartup"
)
endif()

if(ENABLE_SPNAV)
Expand Down
4 changes: 2 additions & 2 deletions CMakeSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"inheritEnvironments": [
"msvc_x86"
],
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\buildDebug\\${name}",
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\installDebug\\${name}",
"cmakeCommandArgs": "--no-warn-unused-cli -DCMAKE_TOOLCHAIN_FILE=${env.VCPKG_PATH}\\scripts\\buildsystems\\vcpkg.cmake -DCMAKE_CXX_FLAGS=\"/we4316 /EHsc\"",
"buildCommandArgs": "-v",
Expand All @@ -20,7 +20,7 @@
"inheritEnvironments": [
"msvc_x86"
],
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\buildRelease\\${name}",
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}",
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\installRelease\\${name}",
"cmakeCommandArgs": "--no-warn-unused-cli -DCMAKE_TOOLCHAIN_FILE=${env.VCPKG_PATH}\\scripts\\buildsystems\\vcpkg.cmake -DCMAKE_CXX_FLAGS=\"/we4316 /EHsc\"",
"buildCommandArgs": "-v",
Expand Down

0 comments on commit a9c59b3

Please sign in to comment.