Skip to content

Commit

Permalink
[vcpkg_build_nmake] Fix /MP -> /FS transformation (#41815)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt authored Nov 14, 2024
1 parent a469702 commit 9b5cb8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cmake/vcpkg_build_nmake.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function(vcpkg_build_nmake)
endif()

if(NOT DEFINED arg_CL_LANGUAGE)
vcpkg_list(SET arg_CL_LANGUAGE CXX)
set(arg_CL_LANGUAGE CXX)
endif()

find_program(NMAKE nmake REQUIRED)
Expand All @@ -57,8 +57,8 @@ function(vcpkg_build_nmake)
get_filename_component(JOM_EXE_PATH "${JOM}" DIRECTORY)
vcpkg_add_to_path("${JOM_EXE_PATH}")
if(arg_CL_LANGUAGE AND "${VCPKG_DETECTED_CMAKE_${arg_CL_LANGUAGE}_COMPILER_ID}" STREQUAL "MSVC")
string(REGEX REPLACE " [/-]MP[0-9]* " " " VCPKG_COMBINED_${arg_CL_LANGUAGE}_FLAGS_DEBUG " ${VCPKG_COMBINED_${arg_CL_LANGUAGE}_FLAGS_DEBUG} /FS")
string(REGEX REPLACE " [/-]MP[0-9]* " " " VCPKG_COMBINED_${arg_CL_LANGUAGE}_FLAGS_RELEASE " ${VCPKG_COMBINED_${arg_CL_LANGUAGE}_FLAGS_RELEASE} /FS")
string(REGEX REPLACE " [/-]MP[0-9]* " " " VCPKG_DETECTED_CMAKE_${arg_CL_LANGUAGE}_FLAGS_DEBUG " ${VCPKG_DETECTED_CMAKE_${arg_CL_LANGUAGE}_FLAGS_DEBUG} /FS")
string(REGEX REPLACE " [/-]MP[0-9]* " " " VCPKG_DETECTED_CMAKE_${arg_CL_LANGUAGE}_FLAGS_RELEASE " ${VCPKG_DETECTED_CMAKE_${arg_CL_LANGUAGE}_FLAGS_RELEASE} /FS")
endif()
else()
set(arg_PREFER_JOM FALSE)
Expand Down

0 comments on commit 9b5cb8e

Please sign in to comment.