Fix install dir of CycloneDDSConfig.cmake (#321)
Installing Cyclone DDS for multiple architectures with the same installation prefix gave problems because the CMake configuration files ended up overwriting each other. This brings it in line with the recommended locations. Thanks to @hansfn. Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
		
							parent
							
								
									3da21315f2
								
							
						
					
					
						commit
						e43bdb73c7
					
				
					 9 changed files with 34 additions and 38 deletions
				
			
		| 
						 | 
				
			
			@ -1,10 +1,8 @@
 | 
			
		|||
cmake_minimum_required(VERSION 3.5)
 | 
			
		||||
 | 
			
		||||
if (NOT TARGET CycloneDDS::ddsc)
 | 
			
		||||
    # Find the CycloneDDS package. If it is not in a default location, try
 | 
			
		||||
    # finding it relative to the example where it most likely resides.
 | 
			
		||||
    find_package(CycloneDDS REQUIRED COMPONENTS idlc PATHS "${CMAKE_CURRENT_SOURCE_DIR}/../../")
 | 
			
		||||
endif()
 | 
			
		||||
# Find the CycloneDDS package. If it is not in a default location, try
 | 
			
		||||
# finding it relative to the example where it most likely resides.
 | 
			
		||||
find_package(CycloneDDS REQUIRED COMPONENTS idlc PATHS "${CMAKE_CURRENT_SOURCE_DIR}/../../../..")
 | 
			
		||||
 | 
			
		||||
# This is a convenience function, provided by the CycloneDDS package,
 | 
			
		||||
# that will supply a library target related the the given idl file.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue