File: 13-use-system-whereami.patch

package info (click to toggle)
ycmd 0%2B20240823%2Bgit8b61f19%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,040 kB
  • sloc: python: 44,018; cpp: 6,138; java: 486; sh: 378; cs: 207; javascript: 150; ansic: 82; makefile: 45; xml: 18; objc: 10
file content (38 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Description: Use system whereami for running tests
Author: David Kalnischkies <donkult@debian.org>
Forwarded: not-needed

--- a/cpp/ycm/tests/CMakeLists.txt
+++ b/cpp/ycm/tests/CMakeLists.txt
@@ -61,12 +61,6 @@
 
 add_executable( ${PROJECT_NAME} ${SOURCES} )
 
-target_include_directories(
-  ${PROJECT_NAME}
-  SYSTEM
-  PRIVATE ${ycm_core_SOURCE_DIR}/../whereami
-  )
-
 if ( MSVC )
   # Build ycm_core_tests and dependencies targets in cmake ycm/tests folder
   foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} )
@@ -79,6 +73,7 @@
 endif()
 
 target_link_libraries( ${PROJECT_NAME}
+                       PRIVATE whereami
                        PRIVATE ycm_core
                        PRIVATE gtest ${CMAKE_THREAD_LIBS_INIT}
                        PRIVATE gmock )
--- a/cpp/ycm/tests/TestUtils.cpp
+++ b/cpp/ycm/tests/TestUtils.cpp
@@ -17,7 +17,7 @@
 
 #include "TestUtils.h"
 
-#include <whereami.c>
+#include <whereami.h>
 
 namespace std {