summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/.github/cmake
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
committer3gg <3gg@shellblade.net>2024-05-04 16:51:29 -0700
commit8222bfe56d4dabe8d92fc4b25ea1b0163b16f3e1 (patch)
tree763389e42276035ac134d94eb1dc32293b88d807 /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.txt16
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 @@
1cmake_minimum_required(VERSION 3.0...3.5)
2project(ci_utils C CXX)
3
4set(txt "CC=${CMAKE_C_COMPILER}
5CXX=${CMAKE_CXX_COMPILER}
6CFLAGS=${CMAKE_C_FLAGS}
7CXXFLAGS=${CMAKE_CXX_FLAGS}
8LDFLAGS=${CMAKE_EXE_LINKER_FLAGS} ${CMAKE_C_STANDARD_LIBRARIES}
9")
10
11message("${txt}")
12
13set(VAR_PATH "/tmp/env.txt" CACHE PATH "Where to write environment file")
14message(STATUS "Writing CC/CXX/CFLAGS/CXXFLAGS/LDFLAGS environment to ${VAR_PATH}")
15
16file(WRITE "${VAR_PATH}" "${txt}")