"docs/vscode:/vscode.git/clone" did not exist on "a47ab71d44002f328de41f9814a9dae84abc8073"
Commit 565d9293 authored by Davis King's avatar Davis King
Browse files

Minor tweaks to scripts so they work on older cmake versions or without cuda.

parent 969950e6
......@@ -407,13 +407,10 @@ if (NOT TARGET dlib)
if (DLIB_USE_CUDA)
find_package(CUDA)
find_package(CUDA 7.0)
if (CUDA_FOUND)
if (CUDA_VERSION_STRING LESS "7.0")
message(FATAL_ERROR "dlib requires CUDA version 7.0 or higher")
endif()
if (CUDA_FOUND)
set(CUDA_HOST_COMPILATION_CPP ON)
list(APPEND CUDA_NVCC_FLAGS "-arch=sm_30;-std=c++11")
......@@ -506,6 +503,7 @@ if (NOT TARGET dlib)
# Install the library
if (NOT DLIB_IN_PROJECT_BUILD)
cmake_minimum_required(VERSION 2.8.8)
if(UNIX)
set_target_properties(dlib-shared PROPERTIES
OUTPUT_NAME dlib
......
......@@ -25,7 +25,7 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
add_global_compiler_switch("-std=gnu++11")
set(COMPILER_CAN_DO_CPP_11 1)
elseif(GCC_VERSION VERSION_GREATER 4.3 OR GCC_VERSION VERSION_EQUAL 4.3)
message(WARNING "C++0x activated.")
message(STATUS "C++0x activated.")
add_global_compiler_switch("-std=gnu++0x")
set(COMPILER_CAN_DO_CPP_11 1)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment