mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-25 22:28:17 +08:00
Bug 5164417 and 5097376: Fix the OpenMP issue finding issue for MSVC and Glang
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user