Created
June 26, 2022 02:53
-
-
Save matlabbe/a412cf7c4627253874f81a00745a7fbb to your computer and use it in GitHub Desktop.
Disable OpenGV march native compile option
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 9660f55..ca01034 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -31,12 +31,12 @@ IF(MSVC) | |
add_definitions(-D_USE_MATH_DEFINES) | |
ELSE() | |
IF (CMAKE_SYSTEM_PROCESSOR MATCHES "(arm64)|(ARM64)|(aarch64)|(AARCH64)") | |
- add_definitions (-march=armv8-a) | |
+ #add_definitions (-march=armv8-a) | |
ELSEIF (CMAKE_SYSTEM_PROCESSOR MATCHES | |
"(arm)|(ARM)|(armhf)|(ARMHF)|(armel)|(ARMEL)") | |
- add_definitions (-march=armv7-a) | |
+ #add_definitions (-march=armv7-a) | |
ELSE () | |
- add_definitions (-march=native) #TODO use correct c++11 def once everybody has moved to gcc 4.7 # for now I even removed std=gnu++0x | |
+ #add_definitions (-march=native) #TODO use correct c++11 def once everybody has moved to gcc 4.7 # for now I even removed std=gnu++0x | |
ENDIF() | |
add_definitions ( | |
-O3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment