Skip to content

Commit 6ae9608

Browse files
EinTim23kyle-elliott-tob
authored andcommitted
- Add support to build remill on windows with static CRT.
1 parent 63dc622 commit 6ae9608

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ target_include_directories(remill_settings INTERFACE
149149
if(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND MSVC)
150150
# warnings and compiler settings
151151
target_compile_options(remill_settings INTERFACE
152-
"$<$<CONFIG:Debug>:/MDd>$<$<CONFIG:Release>:/MD>"
153152
/nologo /W3 /EHsc /wd4141 /wd4146 /wd4180 /wd4244
154153
/wd4258 /wd4267 /wd4291 /wd4345 /wd4351 /wd4355 /wd4456
155154
/wd4457 /wd4458 /wd4459 /wd4503 /wd4624 /wd4722 /wd4800

dependencies/superbuild.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ list(APPEND CMAKE_ARGS
124124
"-DCMAKE_POSITION_INDEPENDENT_CODE:STRING=ON"
125125
"-DCMAKE_ERROR_DEPRECATED:STRING=OFF"
126126
"-DCMAKE_ERROR_DEVELOPER_WARNINGS:STRING=OFF"
127+
"-DCMAKE_MSVC_RUNTIME_LIBRARY:STRING=${CMAKE_MSVC_RUNTIME_LIBRARY}"
128+
"-DCMAKE_POLICY_DEFAULT_CMP0091:STRING=NEW" # Needed to make sure gflags respects CMAKE_MSVC_RUNTIME_LIBRARY as their minimum CMake version is older than 3.15.
127129
)
128130

129131
if(CMAKE_VERSION VERSION_GREATER_EQUAL "4.0")

0 commit comments

Comments
 (0)