Using absolute paths in the pkg-config file makes it not relocatable and leads to problems, when trying to use it with precompiled cross toolchains. Setting prefix to relative path based on pcfiledir makes it more reliable for such cases.
		
			
				
	
	
		
			12 lines
		
	
	
		
			388 B
		
	
	
	
		
			PkgConfig
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			388 B
		
	
	
	
		
			PkgConfig
		
	
	
	
	
	
prefix=${pcfiledir}/../..
 | 
						|
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
 | 
						|
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
 | 
						|
 | 
						|
Name: gmock
 | 
						|
Description: GoogleMock (without main() function)
 | 
						|
Version: @PROJECT_VERSION@
 | 
						|
URL: https://github.com/google/googletest
 | 
						|
Requires: gtest
 | 
						|
Libs: -L${libdir} -lgmock @CMAKE_THREAD_LIBS_INIT@
 | 
						|
Cflags: -I${includedir} @GTEST_HAS_PTHREAD_MACRO@ @CMAKE_THREAD_LIBS_INIT@
 |