2017-04-23 12:55:10 +00:00
|
|
|
INCLUDE(CMakeForceCompiler)
|
|
|
|
SET(CMAKE_SYSTEM_NAME Generic)
|
|
|
|
SET(CMAKE_SYSTEM_VERSION 0)
|
|
|
|
#CMAKE_FORCE_C_COMPILER($ENV{HOME}/opt/bin/i686-elf-gcc GNU)
|
|
|
|
SET(CMAKE_C_COMPILER $ENV{HOME}/opt/bin/x86_64-elf-gcc)
|
|
|
|
#CMAKE_FORCE_CXX_COMPILER($ENV{HOME}/opt/bin/i686-elf-g++ GNU)
|
|
|
|
SET(CMAKE_CXX_COMPILER $ENV{HOME}/opt/bin/x86_64-elf-g++)
|
2017-04-23 17:41:25 +00:00
|
|
|
SET(CMAKE_ASM_COMPILER $ENV{HOME}/opt/bin/x86_64-elf-gcc)
|
2017-04-23 12:55:10 +00:00
|
|
|
SET(CMAKE_FIND_ROOT_PATH $ENV{HOME}/opt)
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH .)
|
|
|
|
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|