🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
458 B

  1. cmake_minimum_required(VERSION 3.0...3.5)
  2. project(ci_utils C CXX)
  3. set(txt "CC=${CMAKE_C_COMPILER}
  4. CXX=${CMAKE_CXX_COMPILER}
  5. CFLAGS=${CMAKE_C_FLAGS}
  6. CXXFLAGS=${CMAKE_CXX_FLAGS}
  7. LDFLAGS=${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_C_STANDARD_LIBRARIES}
  8. ")
  9. message("${txt}")
  10. set(VAR_PATH "/tmp/env.txt" CACHE PATH "Where to write environment file")
  11. message(STATUS "Writing CC/CXX/CFLAGS/CXXFLAGS/LDFLAGS environment to ${VAR_PATH}")
  12. file(WRITE "${VAR_PATH}" "${txt}")