diff options
Diffstat (limited to 'src/contrib/SDL-2.30.2/.github/cmake/CMakeLists.txt')
-rw-r--r-- | src/contrib/SDL-2.30.2/.github/cmake/CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/contrib/SDL-2.30.2/.github/cmake/CMakeLists.txt b/src/contrib/SDL-2.30.2/.github/cmake/CMakeLists.txt new file mode 100644 index 0000000..4875701 --- /dev/null +++ b/src/contrib/SDL-2.30.2/.github/cmake/CMakeLists.txt | |||
@@ -0,0 +1,16 @@ | |||
1 | cmake_minimum_required(VERSION 3.0...3.5) | ||
2 | project(ci_utils C CXX) | ||
3 | |||
4 | set(txt "CC=${CMAKE_C_COMPILER} | ||
5 | CXX=${CMAKE_CXX_COMPILER} | ||
6 | CFLAGS=${CMAKE_C_FLAGS} | ||
7 | CXXFLAGS=${CMAKE_CXX_FLAGS} | ||
8 | LDFLAGS=${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_C_STANDARD_LIBRARIES} | ||
9 | ") | ||
10 | |||
11 | message("${txt}") | ||
12 | |||
13 | set(VAR_PATH "/tmp/env.txt" CACHE PATH "Where to write environment file") | ||
14 | message(STATUS "Writing CC/CXX/CFLAGS/CXXFLAGS/LDFLAGS environment to ${VAR_PATH}") | ||
15 | |||
16 | file(WRITE "${VAR_PATH}" "${txt}") | ||