mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fix cmake error (#2871)
Use the correct target name when setting properties on cereal.
This commit is contained in:
		
							parent
							
								
									a6163a1550
								
							
						
					
					
						commit
						cd35995402
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -511,9 +511,11 @@ find_package(glfw3 REQUIRED) | |||
| 
 | ||||
| # Find the Cereal serialization library | ||||
| find_package(cereal REQUIRED) | ||||
| set_target_properties(cereal PROPERTIES IMPORTED_GLOBAL TRUE) | ||||
| if (NOT TARGET cereal::cereal) | ||||
|     set_target_properties(cereal PROPERTIES IMPORTED_GLOBAL TRUE) | ||||
|     add_library(cereal::cereal ALIAS cereal) | ||||
| else () | ||||
|     set_target_properties(cereal::cereal PROPERTIES IMPORTED_GLOBAL TRUE) | ||||
| endif () | ||||
| 
 | ||||
| # l10n | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jim Broadus
						Jim Broadus