]> git.pld-linux.org Git - packages/Eyescale-CMake.git/blame - Eyescale-cmake.patch
- common for Eyescale project to avoid patching each one for cmake 3.1
[packages/Eyescale-CMake.git] / Eyescale-cmake.patch
CommitLineData
0e04966f
JB
1--- CMake/common/CppcheckTargets.cmake.orig 2014-10-03 15:04:16.000000000 +0200
2+++ CMake/common/CppcheckTargets.cmake 2014-12-20 18:25:39.845494349 +0100
3@@ -83,6 +83,7 @@
4
5 get_target_property(_cppcheck_sources "${_name}" SOURCES)
6 set(_files)
7+ if(_cppcheck_sources)
8 foreach(_source ${_cppcheck_sources})
9 get_source_file_property(_cppcheck_lang "${_source}" LANGUAGE)
10 get_source_file_property(_cppcheck_loc "${_source}" LOCATION)
11@@ -90,6 +91,7 @@
12 list(APPEND _files "${_cppcheck_loc}")
13 endif()
14 endforeach()
15+ endif()
16
17 if(NOT _files) # nothing to check
18 return()
19--- CMake/common/CpplintTargets.cmake.orig 2014-10-03 15:04:16.000000000 +0200
20+++ CMake/common/CpplintTargets.cmake 2014-12-20 17:39:11.122277997 +0100
21@@ -82,6 +82,7 @@
22 get_target_property(_cpplint_sources "${_name}" SOURCES)
23 set(_files)
24 #set(_exclude_pattern ".*moc_.*\\.cxx|Buildyard/Build")
25+ if(_cpplint_sources)
26 foreach(_source ${_cpplint_sources})
27 get_source_file_property(_cpplint_lang "${_source}" LANGUAGE)
28 get_source_file_property(_cpplint_loc "${_source}" LOCATION)
29@@ -89,6 +90,7 @@
30 list(APPEND _files "${_cpplint_loc}")
31 endif("${_cpplint_lang}" MATCHES "CXX" AND NOT ${_cpplint_loc} MATCHES ${add_cpplint_EXCLUDE_PATTERN})
32 endforeach(_source ${_cpplint_sources})
33+ endif()
34
35 if(NOT _files) # nothing to check
36 return()
37--- CMake/common/clangcheckTargets.cmake.orig 2014-10-03 15:04:16.000000000 +0200
38+++ CMake/common/clangcheckTargets.cmake 2014-12-20 13:41:11.706210588 +0100
39@@ -40,6 +40,7 @@
40 set(_exclude_pattern ".*moc_.*\\.cxx$") # Qt moc files
41
42 get_target_property(_clangcheck_sources "${_name}" SOURCES)
43+ if(_clangcheck_sources)
44 set(_files)
45 foreach(_source ${_clangcheck_sources})
46 get_source_file_property(_clangcheck_lang "${_source}" LANGUAGE)
47@@ -50,6 +51,7 @@
48 list(APPEND _files "${_clangcheck_loc}")
49 endif()
50 endforeach()
51+ endif()
52
53 if(NOT _files) # nothing to check
54 return()
This page took 0.105552 seconds and 4 git commands to generate.