File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 2.8.12 )
22
3- cmake_policy (SET CMP0048 NEW )
4- project (thundersvm VERSION 0.1.0 LANGUAGES C CXX )
3+ if (CMAKE_VERSION VERSION_LESS "3.0" )
4+ project (thundersvm C CXX )
5+ set (PROJECT_VERSION 0.1.0)
6+ else ()
7+ cmake_policy (SET CMP0048 NEW )
8+ project (thundersvm VERSION 0.1.0 LANGUAGES C CXX )
9+ endif ()
510set (USE_CUDA ON CACHE BOOL "Compile with CUDA" )
611set (USE_EIGEN OFF CACHE BOOL "Compile with Eigen" )
712set (CMAKE_BUILD_TYPE Release)
813find_package (Threads REQUIRED )
914find_package (OpenMP REQUIRED )
1015if (OPENMP_FOUND)
11- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS} " )
12- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} " )
13- endif ()
16+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS} " )
17+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} " )
18+ endif ()
1419
1520if (USE_CUDA)
1621 message ("Compile with CUDA" )
You can’t perform that action at this time.
0 commit comments