summaryrefslogtreecommitdiff
path: root/src/contrib/SDL-2.30.2/.github/cmake/CMakeLists.txt
diff options
context:
space:
mode:
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.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}")