File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ set(CMAKE_SYSROOT /build/sysroot)
14
14
set (CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT} )
15
15
16
16
# Set compiler optimizations for ARM
17
- set (CMAKE_C_FLAGS "-march=armv8-a -mtune=generic -ftree-vectorize --sysroot=${CMAKE_SYSROOT} " CACHE STRING "" FORCE)
18
- set (CMAKE_CXX_FLAGS "-march=armv8-a -mtune=generic -ftree-vectorize --sysroot=${CMAKE_SYSROOT} " CACHE STRING "" FORCE)
17
+ set (CMAKE_C_FLAGS "-march=armv8-a -mtune=cortex-a72 -O2 -pipe --sysroot=${CMAKE_SYSROOT} " CACHE STRING "" FORCE)
18
+ set (CMAKE_CXX_FLAGS "-march=armv8-a -mtune=cortex-a72 -O2 -pipe --sysroot=${CMAKE_SYSROOT} " CACHE STRING "" FORCE)
19
19
20
20
# Set linker flags
21
21
set (CMAKE_EXE_LINKER_FLAGS "-L${CMAKE_SYSROOT} /usr/lib/aarch64-linux-gnu -Wl,-rpath-link,${CMAKE_SYSROOT} /usr/lib/aarch64-linux-gnu" )
@@ -29,5 +29,5 @@ set(CMAKE_PREFIX_PATH "${Qt6_DIR};${OpenCV_DIR}")
29
29
30
30
# Define how CMake should search for dependencies
31
31
SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
32
- SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
33
- SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
32
+ SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH )
33
+ SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH )
You can’t perform that action at this time.
0 commit comments