if(CMAKE_CROSSCOMPILING)
    set(TRIPLE_TARGET "x86_64-pc-linux-gnu")
    set(CROSS_COMPILER_PREFIX ${TRIPLE_TARGET}-)
    set(CMAKE_C_COMPILER_TARGET "${TRIPLE_TARGET}")
    set(CMAKE_CXX_COMPILER_TARGET "${TRIPLE_TARGET}")
    set(CMAKE_ASM_COMPILER_TARGET "${TRIPLE_TARGET}")
endif()
