CMake: Fix values of INTERFACE_INCLUDE_DIRECTORIES property
Replace semicolon by `$<SEMICOLON>` in generator-expressions of target property `INTERFACE_INCLUDE_DIRECTORIES` of CMake targets `gtest`, `gtest_main`, `gmock` and `gmock_main`. Fixes: #3616 Signed-off-by: Deniz Bahadir <deniz@code.bahadir.email>
This commit is contained in:
		@@ -105,11 +105,12 @@ endif()
 | 
				
			|||||||
# to the targets for when we are part of a parent build (ie being pulled
 | 
					# to the targets for when we are part of a parent build (ie being pulled
 | 
				
			||||||
# in via add_subdirectory() rather than being a standalone build).
 | 
					# in via add_subdirectory() rather than being a standalone build).
 | 
				
			||||||
if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
 | 
					if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
 | 
				
			||||||
 | 
					  string(REPLACE ";" "$<SEMICOLON>" dirs "${gmock_build_include_dirs}")
 | 
				
			||||||
  target_include_directories(gmock SYSTEM INTERFACE
 | 
					  target_include_directories(gmock SYSTEM INTERFACE
 | 
				
			||||||
    "$<BUILD_INTERFACE:${gmock_build_include_dirs}>"
 | 
					    "$<BUILD_INTERFACE:${dirs}>"
 | 
				
			||||||
    "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
 | 
					    "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
 | 
				
			||||||
  target_include_directories(gmock_main SYSTEM INTERFACE
 | 
					  target_include_directories(gmock_main SYSTEM INTERFACE
 | 
				
			||||||
    "$<BUILD_INTERFACE:${gmock_build_include_dirs}>"
 | 
					    "$<BUILD_INTERFACE:${dirs}>"
 | 
				
			||||||
    "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
 | 
					    "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -131,11 +131,12 @@ set_target_properties(gtest_main PROPERTIES VERSION ${GOOGLETEST_VERSION})
 | 
				
			|||||||
# to the targets for when we are part of a parent build (ie being pulled
 | 
					# to the targets for when we are part of a parent build (ie being pulled
 | 
				
			||||||
# in via add_subdirectory() rather than being a standalone build).
 | 
					# in via add_subdirectory() rather than being a standalone build).
 | 
				
			||||||
if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
 | 
					if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
 | 
				
			||||||
 | 
					  string(REPLACE ";" "$<SEMICOLON>" dirs "${gtest_build_include_dirs}")
 | 
				
			||||||
  target_include_directories(gtest SYSTEM INTERFACE
 | 
					  target_include_directories(gtest SYSTEM INTERFACE
 | 
				
			||||||
    "$<BUILD_INTERFACE:${gtest_build_include_dirs}>"
 | 
					    "$<BUILD_INTERFACE:${dirs}>"
 | 
				
			||||||
    "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
 | 
					    "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
 | 
				
			||||||
  target_include_directories(gtest_main SYSTEM INTERFACE
 | 
					  target_include_directories(gtest_main SYSTEM INTERFACE
 | 
				
			||||||
    "$<BUILD_INTERFACE:${gtest_build_include_dirs}>"
 | 
					    "$<BUILD_INTERFACE:${dirs}>"
 | 
				
			||||||
    "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
 | 
					    "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
 | 
				
			||||||
endif()
 | 
					endif()
 | 
				
			||||||
target_link_libraries(gtest_main PUBLIC gtest)
 | 
					target_link_libraries(gtest_main PUBLIC gtest)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user