Skip to content

Commit

Permalink
Make Ninja happy on Windows with /FP (set via /MP)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudara committed Jul 31, 2024
1 parent dff2a90 commit b50b607
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ if (MelatoninInspector_IS_TOP_LEVEL)
JUCE_WEB_BROWSER=0
)

# https://learn.microsoft.com/en-us/cpp/build/reference/mp-build-with-multiple-processes
# Needed for ninja to be happy in CI
if (MSVC)
add_compile_options(/MP)
endif ()

set_target_properties("${TARGET_NAME}" PROPERTIES COMPILE_WARNING_AS_ERROR ON)

endif ()
Expand Down

0 comments on commit b50b607

Please sign in to comment.