This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
ScriptCraft/scriptcraft/cmake/linux-x86_64-toolchain.cmake

10 lines
254 B
CMake
Raw Normal View History

2020-04-25 17:25:37 +00:00
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR x86_64)
if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL CMAKE_HOST_SYSTEM_PROCESSOR)
message(FATAL_ERROR "Host System is not x86_64")
endif()
set(CMAKE_C_COMPILER clang)
add_link_options(-fuse-ld=lld)