diff options
author | 3gg <3gg@shellblade.net> | 2024-05-04 16:51:29 -0700 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-05-04 16:51:29 -0700 |
commit | 8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch) | |
tree | 763389e42276035ac134d94eb1dc32293b88d807 /src/contrib/SDL-2.30.2/.github/cmake |
Initial commit.
Diffstat (limited to 'src/contrib/SDL-2.30.2/.github/cmake')
-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}") | ||