Skip to content

Commit c89b512

Browse files
committed
Added os/raspberry-pi3
1 parent 31ffb07 commit c89b512

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

os/raspberry-pi3.cmake

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Copyright (c) 2017, Alexandre Pretyman
2+
# All rights reserved.
3+
4+
if(DEFINED POLLY_OS_RASPBERRY_PI3_CMAKE)
5+
return()
6+
else()
7+
set(POLLY_OS_RASPBERRY_PI3_CMAKE 1)
8+
endif()
9+
10+
include(polly_add_cache_flag)
11+
12+
foreach(_flag -mcpu=cortex-a53 -mfpu=neon-fp-armv8)
13+
polly_add_cache_flag(CMAKE_C_FLAGS "${_flag}")
14+
polly_add_cache_flag(CMAKE_CXX_FLAGS "${_flag}")
15+
endforeach()
16+
17+
set(CMAKE_SYSTEM_PROCESSOR "armv7-l" CACHE INTERNAL "")
18+
set(RASPBERRY_PI 3 CACHE INTERNAL "")
19+

0 commit comments

Comments
 (0)