Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Samples/0_Introduction/UnifiedMemoryStreams/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "QNX")
endif()

# Source file
if(CMAKE_GENERATOR MATCHES "Visual Studio")
find_package(OpenMP REQUIRED C CXX)
else()
find_package(OpenMP REQUIRED)
endif()
find_package(OpenMP REQUIRED C CXX)

if(${OpenMP_FOUND})
# Add target for UnifiedMemoryStreams
Expand Down
2 changes: 1 addition & 1 deletion Samples/0_Introduction/cudaOpenMP/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endif()
# Include directories and libraries
include_directories(../../../Common)

find_package(OpenMP)
find_package(OpenMP C CXX)

# Source file
if(OpenMP_CXX_FOUND)
Expand Down