Skip to content

Commit

Permalink
CMake Linux Toolchain: Simplify
Browse files Browse the repository at this point in the history
Simplify with Chuck's recommendations. Do not cross-compile.
  • Loading branch information
ax3l committed Aug 22, 2019
1 parent e756e36 commit b9472ca
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions recipe/cross-linux.cmake
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
# this one is important
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_PLATFORM Linux)
# this one not so much
set(CMAKE_SYSTEM_VERSION 1)

# architecture
set(CMAKE_SYSTEM_PROCESSOR x86_64) # TODO: ppc64le and aarch64 env var?

# specify the cross compiler
set(CMAKE_C_COMPILER $ENV{CC})
set(CMAKE_CXX_COMPILER $ENV{CXX})

# where is the target environment
set(CMAKE_SYSTEM_PREFIX_PATH $ENV{BUILD_PREFIX}/$ENV{HOST}/sysroot)
set(CMAKE_FIND_ROOT_PATH $ENV{PREFIX} $ENV{BUILD_PREFIX}/$ENV{HOST}/sysroot)
Expand Down

0 comments on commit b9472ca

Please sign in to comment.