Bug 5164417 and 5097376: Fix the OpenMP issue finding issue for MSVC and Glang

This commit is contained in:
shawnz
2025-04-27 16:50:12 +08:00
parent a45fd3bd7c
commit 49159f3739
2 changed files with 6 additions and 2 deletions

View File

@@ -20,7 +20,11 @@ endif()
include_directories(../../../Common)
# Source file
find_package(OpenMP REQUIRED)
if(CMAKE_GENERATOR MATCHES "Visual Studio")
find_package(OpenMP REQUIRED C CXX)
else()
find_package(OpenMP REQUIRED)
endif()
if(${OpenMP_FOUND})
# Add target for UnifiedMemoryStreams