Skip to content

Commit

Permalink
cmake(msvc): disable FH4
Browse files Browse the repository at this point in the history
  • Loading branch information
Palakis committed Apr 6, 2020
1 parent b511689 commit 7150d56
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,12 @@ if(WIN32)
endif()

if(MSVC)
# Enable Multicore Builds
add_definitions(/MP)
# Enable Multicore Builds and disable FH4 (to not depend on VCRUNTIME140_1.DLL)
add_definitions(/MP /d2FH4-)

# Disable FH4 (to not depend on VCRUNTIME140_1.DLL)
# target_compile_options(obs-ndi PRIVATE "-d2FH4-")
# target_link_options(obs-ndi PRIVATE "-d2FH4-")
endif()

add_definitions(/O2)
Expand Down

0 comments on commit 7150d56

Please sign in to comment.