Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
e9d49fee
Commit
e9d49fee
authored
Mar 22, 2022
by
Øystein Myrmo
Committed by
Davis E. King
Mar 23, 2022
Browse files
Print reason for failing to compile cpp11_test
parent
04d1180b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dlib/cmake_utils/use_cpp_11.cmake
dlib/cmake_utils/use_cpp_11.cmake
+3
-1
No files found.
dlib/cmake_utils/use_cpp_11.cmake
View file @
e9d49fee
...
@@ -22,13 +22,15 @@ set(COMPILER_CAN_DO_CPP_11 0)
...
@@ -22,13 +22,15 @@ set(COMPILER_CAN_DO_CPP_11 0)
macro
(
test_compiler_for_cpp11
)
macro
(
test_compiler_for_cpp11
)
message
(
STATUS
"Building a C++11 test project to see if your compiler supports C++11"
)
message
(
STATUS
"Building a C++11 test project to see if your compiler supports C++11"
)
try_compile
(
test_for_cpp11_worked
${
PROJECT_BINARY_DIR
}
/cpp11_test_build
try_compile
(
test_for_cpp11_worked
${
PROJECT_BINARY_DIR
}
/cpp11_test_build
${
_where_is_cmake_utils_dir
}
/test_for_cpp11 cpp11_test
)
${
_where_is_cmake_utils_dir
}
/test_for_cpp11 cpp11_test
OUTPUT_VARIABLE cpp11_test_output
)
if
(
test_for_cpp11_worked
)
if
(
test_for_cpp11_worked
)
message
(
STATUS
"C++11 activated."
)
message
(
STATUS
"C++11 activated."
)
set
(
COMPILER_CAN_DO_CPP_11 1
)
set
(
COMPILER_CAN_DO_CPP_11 1
)
else
()
else
()
set
(
COMPILER_CAN_DO_CPP_11 0
)
set
(
COMPILER_CAN_DO_CPP_11 0
)
message
(
STATUS
"********** Your compiler failed to build a C++11 project. C++11 is required to use all parts of dlib! **********"
)
message
(
STATUS
"********** Your compiler failed to build a C++11 project. C++11 is required to use all parts of dlib! **********"
)
message
(
STATUS
"********** Compiler output:
${
cpp11_test_output
}
**********"
)
endif
()
endif
()
endmacro
()
endmacro
()
...
...
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