File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ project(PowerShell)
33
44add_compile_options ()
55
6+ # set these flags, so build does static linking for msvcr120.dll
7+ # otherwise this dll need to be present on the system
8+ set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT" )
9+ set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd" )
10+
611include_directories (
712 ../../src/monad/monad/nttargets/assemblies/nativemsh/pwrshcommon )
813
@@ -21,9 +26,8 @@ add_executable(powershell WIN32
2126
2227# This subsystem definition is using old policy. TODO: figure out for release and the rest
2328set_target_properties (powershell PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:CONSOLE" )
24- set_target_properties (powershell PROPERTIES COMPILE_DEFINITIONS_DEBUG "_CONSOLE" )
29+ set_target_properties (powershell PROPERTIES COMPILE_DEFINITIONS "_CONSOLE" )
2530set_target_properties (powershell PROPERTIES LINK_FLAGS_RELWITHDEBINFO "/SUBSYSTEM:CONSOLE" )
26- set_target_properties (powershell PROPERTIES COMPILE_DEFINITIONS_RELWITHDEBINFO "_CONSOLE" )
2731set_target_properties (powershell PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS" )
2832set_target_properties (powershell PROPERTIES LINK_FLAGS_MINSIZEREL "/SUBSYSTEM:WINDOWS" )
2933
You can’t perform that action at this time.
0 commit comments