Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CTest support #310

Merged
merged 11 commits into from
Apr 10, 2020
Prev Previous commit
Next Next commit
[CMake] Bump required CMake version to get access to more OpenMP vari…
…ables
  • Loading branch information
SFrijters committed Apr 8, 2020
commit 47439d09cf213d8da778b8a066cacc6c1da018aa
12 changes: 4 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.0 FATAL_ERROR)
cmake_minimum_required (VERSION 3.12 FATAL_ERROR)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
Expand Down Expand Up @@ -47,13 +47,9 @@ ENDIF()

# searches for CUDA if allowed
IF (ALLOW_CUDA)
IF(${CMAKE_VERSION} VERSION_LESS "3.8.0")
include(CUDA)
ELSE()
set(OCCA_CUDA_ENABLED 1)
set(WITH_CUDA 1)
enable_language(CUDA)
ENDIF()
set(OCCA_CUDA_ENABLED 1)
set(WITH_CUDA 1)
enable_language(CUDA)
ENDIF()

# searches for MPI if allowed
Expand Down