summarylogtreecommitdiffstats
path: root/add_filename_macro.patch
blob: 037bd565adc326faeb53c7ea41f6161238176740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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()