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
dgl
Commits
7c3e1f94
Unverified
Commit
7c3e1f94
authored
Jul 13, 2021
by
Quan (Andy) Gan
Committed by
GitHub
Jul 13, 2021
Browse files
Remove march=native flag (#3134)
parent
2e19ba80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
CMakeLists.txt
+2
-2
No files found.
CMakeLists.txt
View file @
7c3e1f94
...
@@ -90,10 +90,10 @@ if(MSVC)
...
@@ -90,10 +90,10 @@ if(MSVC)
else
(
MSVC
)
else
(
MSVC
)
include
(
CheckCXXCompilerFlag
)
include
(
CheckCXXCompilerFlag
)
check_cxx_compiler_flag
(
"-std=c++11"
SUPPORT_CXX11
)
check_cxx_compiler_flag
(
"-std=c++11"
SUPPORT_CXX11
)
set
(
CMAKE_C_FLAGS
"-O2 -Wall -fPIC
-march=native
${
CMAKE_C_FLAGS
}
"
)
set
(
CMAKE_C_FLAGS
"-O2 -Wall -fPIC
${
CMAKE_C_FLAGS
}
"
)
# We still use c++11 flag in CPU build because gcc5.4 (our default compiler) is
# We still use c++11 flag in CPU build because gcc5.4 (our default compiler) is
# not fully compatible with c++14 feature.
# not fully compatible with c++14 feature.
set
(
CMAKE_CXX_FLAGS
"-O2 -Wall -fPIC -std=c++11
-march=native
${
CMAKE_CXX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"-O2 -Wall -fPIC -std=c++11
${
CMAKE_CXX_FLAGS
}
"
)
if
(
NOT APPLE
)
if
(
NOT APPLE
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"-Wl,--warn-common
${
CMAKE_SHARED_LINKER_FLAGS
}
"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"-Wl,--warn-common
${
CMAKE_SHARED_LINKER_FLAGS
}
"
)
endif
(
NOT APPLE
)
endif
(
NOT APPLE
)
...
...
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