Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
3a65e1c7
Commit
3a65e1c7
authored
Oct 18, 2015
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apparently you need gcc 4.7 or newer for this stuff.
parent
bf93f4f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
CMakeLists.txt
dlib/CMakeLists.txt
+1
-1
use_cpp_11.cmake
dlib/use_cpp_11.cmake
+0
-4
No files found.
dlib/CMakeLists.txt
View file @
3a65e1c7
...
...
@@ -409,7 +409,7 @@ if (NOT TARGET dlib)
find_package
(
CUDA 7.0
)
if
(
CUDA_FOUND
)
if
(
CUDA_FOUND
AND COMPILER_CAN_DO_CPP_11
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
# Note that we add __STRICT_ANSI__ to avoid freaking out nvcc with gcc specific
...
...
dlib/use_cpp_11.cmake
View file @
3a65e1c7
...
...
@@ -24,10 +24,6 @@ if (CMAKE_VERSION VERSION_LESS "3.1")
message
(
STATUS
"C++11 activated."
)
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
(
STATUS
"C++0x activated."
)
add_global_compiler_switch
(
"-std=gnu++0x"
)
set
(
COMPILER_CAN_DO_CPP_11 1
)
endif
()
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Clang"
)
execute_process
(
COMMAND
${
CMAKE_CXX_COMPILER
}
--version OUTPUT_VARIABLE clang_full_version_string
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment