Skip to content

Commit dbd87d1

Browse files
committed
RaspberriPi cross-compiling... but not working.
1 parent ebf42b8 commit dbd87d1

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/build/
22
/CMakeLists.txt.user
33
/doc/output
4+
.vs/
5+
CMakeSettings.json

LSLCMake.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(NOT CMAKE_BUILD_TYPE)
88
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type" FORCE)
99
endif()
1010
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
11+
# OR ((${MSVC_VERSION} GREATER_EQUAL 1910) AND ("${CMAKE_GENERATOR}" STREQUAL "Ninja"))
1112
set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/build/install" CACHE PATH
1213
"Where to put redistributable binaries" FORCE)
1314
message(WARNING "CMAKE_INSTALL_PREFIX default initialized to ${CMAKE_INSTALL_PREFIX}")

pi.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
SET(CMAKE_SYSTEM_NAME Linux)
2+
SET(CMAKE_SYSTEM_VERSION 1)
3+
SET(CMAKE_C_COMPILER $ENV{PITOOLS}/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc)
4+
SET(CMAKE_CXX_COMPILER $ENV{PITOOLS}/arm-bcm2708/arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc)
5+
SET(CMAKE_FIND_ROOT_PATH $ENV{PITOOLS}/arm-bcm2708/arm-linux-gnueabihf/arm-linux-gnueabihf/sysroot/)
6+
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
7+
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
8+
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
9+
add_definitions(-Wall)

0 commit comments

Comments
 (0)