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
liupw
rocmlite
Commits
60011c94
Commit
60011c94
authored
May 17, 2024
by
dugupeiwen
Browse files
Compile with C++14
parent
8ec57337
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
CMakeLists.txt
CMakeLists.txt
+4
-4
rocmlite/CMakeLists.txt
rocmlite/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
60011c94
...
...
@@ -36,11 +36,11 @@ enable_language(CXX)
# CMAKE 3.1.0+ has CXX_STANDARD etc, not present by default on older linux
# just check the flag is supported (most likely gcc).
include
(
CheckCXXCompilerFlag
)
CHECK_CXX_COMPILER_FLAG
(
-std=c++1
1
CXX_HAS_CXX1
1
)
if
(
CXX_HAS_CXX1
1
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-g -fno-rtti -Wall -std=c++1
1
"
)
CHECK_CXX_COMPILER_FLAG
(
-std=c++1
4
CXX_HAS_CXX1
4
)
if
(
CXX_HAS_CXX1
4
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-g -fno-rtti -Wall -std=c++1
4
"
)
else
()
message
(
FATAL_ERROR
"Compiler must support C++1
1
"
)
message
(
FATAL_ERROR
"Compiler must support C++1
4
"
)
endif
()
find_package
(
LLVM REQUIRED CONFIG
)
...
...
rocmlite/CMakeLists.txt
View file @
60011c94
...
...
@@ -46,5 +46,5 @@ set_target_properties(rocmlite PROPERTIES
# Add in test dir
# add_subdirectory(googletest)
add_subdirectory
(
test
)
#
add_subdirectory(test)
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