gctf2023/pwn/flipper/dist/arch/x86/64/CMakeLists.compiler
2023-11-24 13:11:34 -05:00

15 lines
433 B
Plaintext

if(CMAKE_CROSSCOMPILING)
INCLUDE(CMakeForceCompiler)
SET(CMAKE_SYSTEM_NAME Generic)
SET(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
find_program(CMAKE_ASM_COMPILER x86_64-linux-gnu-gcc)
find_program(CMAKE_C_COMPILER x86_64-linux-gnu-gcc)
find_program(CMAKE_CXX_COMPILER x86_64-linux-gnu-g++)
find_program(LD_EXECUTABLE x86_64-linux-gnu-gcc)
find_program(OBJCOPY_EXECUTABLE x86_64-linux-gnu-objcopy)
endif(CMAKE_CROSSCOMPILING)