forked from Green-Sky/tomato
Green Sky
dec0d4ec41
git-subtree-dir: external/sdl/SDL git-subtree-split: b8d91252c6488cf9c645aba447b56bb9dbd9609a
17 lines
452 B
CMake
17 lines
452 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(ci_utils C CXX)
|
|
|
|
set(txt "CC=${CMAKE_C_COMPILER}
|
|
CXX=${CMAKE_CXX_COMPILER}
|
|
CFLAGS=${CMAKE_C_FLAGS}
|
|
CXXFLAGS=${CMAKE_CXX_FLAGS}
|
|
LDFLAGS=${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_C_STANDARD_LIBRARIES}
|
|
")
|
|
|
|
message("${txt}")
|
|
|
|
set(VAR_PATH "/tmp/env.txt" CACHE PATH "Where to write environment file")
|
|
message(STATUS "Writing CC/CXX/CFLAGS/CXXFLAGS/LDFLAGS environment to ${VAR_PATH}")
|
|
|
|
file(WRITE "${VAR_PATH}" "${txt}")
|