Commit 83e4ddc9 authored by Dan Sojka's avatar Dan Sojka
Browse files

Added version variable


Signed-off-by: Dan Sojka's avatarDan Sojka <dsojka@emacinc.com>
parent ab3f6650
INCLUDE(CMakeForceCompiler)
SET(CORRECT_VERSION 5.1)
#Version Information
SET(TC_ARMV5_MAJOR_VERSION 1)
SET(TC_ARMV5_MINOR_VERSION 0)
SET(TC_ARMV5_PATCH_VERSION 0)
SET(TC_ARMV5_VERSION ${TC_ARMV5_MAJOR_VERSION}.${TC_ARMV5_MINOR_VERSION}.${TC_ARMV5_PATCH_VERSION})
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0/sysroots/armv5e-emac-linux-gnueabi/)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/${CORRECT_VERSION}/sysroots/armv5e-emac-linux-gnueabi/)
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_FORCE_C_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc GNU)
SET(CMAKE_FORCE_CXX_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-g++ GNU)
SET(CMAKE_FORCE_C_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc GNU)
SET(CMAKE_FORCE_CXX_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-g++ GNU)
SET(CMAKE_C_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc --sysroot=${CMAKE_FIND_ROOT_PATH})
SET(CMAKE_CXX_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-g++ --sysroot=${CMAKE_FIND_ROOT_PATH})
SET(CMAKE_C_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-gcc --sysroot=${CMAKE_FIND_ROOT_PATH})
SET(CMAKE_CXX_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/arm-emac-linux-gnueabi/arm-emac-linux-gnueabi-g++ --sysroot=${CMAKE_FIND_ROOT_PATH})
SET(CMAKE_FIND_ROOT_PATH_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_LIBRARY ONLY)
......
INCLUDE(CMakeForceCompiler)
SET(CORRECT_VERSION 5.1)
#Version Information
SET(TC_I586_MAJOR_VERSION 1)
SET(TC_I586_MINOR_VERSION 0)
SET(TC_I586_PATCH_VERSION 0)
SET(TC_I586_VERSION ${TC_I586_MAJOR_VERSION}.${TC_I586_MINOR_VERSION}.${TC_I586_PATCH_VERSION})
SET(CMAKE_FIND_ROOT_PATH /opt/emac/5.0/sysroots/i586-emac-linux/)
SET(CMAKE_FIND_ROOT_PATH /opt/emac/${CORRECT_VERSION}/sysroots/i586-emac-linux/)
SET(CMAKE_SYSTEM_NAME Linux)
SET(CMAKE_SYSTEM_VERSION 1)
SET(CMAKE_FORCE_C_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc GNU)
SET(CMAKE_FORCE_CXX_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++ GNU)
SET(CMAKE_FORCE_C_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc GNU)
SET(CMAKE_FORCE_CXX_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++ GNU)
SET(CMAKE_C_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc --sysroot=${CMAKE_FIND_ROOT_PATH})
SET(CMAKE_CXX_COMPILER /opt/emac/5.0/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++ --sysroot=${CMAKE_FIND_ROOT_PATH})
SET(CMAKE_C_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-gcc --sysroot=${CMAKE_FIND_ROOT_PATH})
SET(CMAKE_CXX_COMPILER /opt/emac/${CORRECT_VERSION}/sysroots/x86_64-emacsdk-linux/usr/bin/i586-emac-linux/i586-emac-linux-g++ --sysroot=${CMAKE_FIND_ROOT_PATH})
SET(CMAKE_FIND_ROOT_PATH_PROGRAM NEVER)
SET(CMAKE_FIND_ROOT_PATH_LIBRARY ONLY)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment