summarylogtreecommitdiffstats
path: root/add_filename_macro.patch
diff options
context:
space:
mode:
Diffstat (limited to 'add_filename_macro.patch')
-rw-r--r--add_filename_macro.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/add_filename_macro.patch b/add_filename_macro.patch
new file mode 100644
index 00000000000..037bd565adc
--- /dev/null
+++ b/add_filename_macro.patch
@@ -0,0 +1,14 @@
+--- CMakeLists.txt.orig 2019-10-06 12:18:03.648902685 +0200
++++ CMakeLists.txt 2019-10-06 12:18:25.002441273 +0200
+@@ -1,6 +1,11 @@
+ cmake_minimum_required(VERSION 3.0.2)
+ include(CMakeDependentOption)
+
++cmake_policy(PUSH)
++cmake_policy(SET CMP0005 OLD)
++add_definitions(-D__FILENAME__=\\"$\(<F\)\\")
++cmake_policy(POP)
++
+ if(VITA_BUILD AND SWITCH_BUILD)
+ message(FATAL_ERROR "Cannot build with -DVITA_BUILD=ON and -DSWITCH_BUILD=ON at the same time")
+ endif()