Skip to content

Commit 9b1dca0

Browse files
committed
Disable FH4 on VS2019 missing vcruntime140_1.dll
1 parent ffea324 commit 9b1dca0

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ set(CXX_STANDARD_REQUIRED 11)
88

99
set(LIBMCPHASE_PYTHON_MODULE libmcphase)
1010

11+
# The latest VS needs an extra library VCRUNTIME140_1.dll which is not in
12+
# the anaconda redistributable module (yet) - so disable it.
13+
# https://developercommunity.visualstudio.com/content/problem/852548/vcruntime140-1dll-is-missing.html
14+
if(WIN32)
15+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -d2FH4-")
16+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -d2FH4-")
17+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -d2:-FH4-")
18+
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -d2:-FH4-")
19+
endif(WIN32)
20+
1121
include(Eigen)
1222
include_directories(${EIGEN3_INCLUDE_DIR})
1323

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.1.2

0 commit comments

Comments
 (0)