Merge pull request #24 from gunrot/objectlibfix
handle objeclib only input for target
This commit is contained in:
		
							
								
								
									
										10
									
								
								cmake/FindSanitizers.cmake
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										10
									
								
								cmake/FindSanitizers.cmake
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -77,12 +77,12 @@ function(add_sanitizers ...)
 | 
				
			|||||||
                    "Target will be compiled without sanitizers.")
 | 
					                    "Target will be compiled without sanitizers.")
 | 
				
			||||||
            return()
 | 
					            return()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # If the target is compiled by no known compiler, ignore it.
 | 
					        # If the target is compiled by no or no known compiler, give a warning.
 | 
				
			||||||
        elseif (NUM_COMPILERS EQUAL 0)
 | 
					        elseif (NUM_COMPILERS EQUAL 0)
 | 
				
			||||||
            message(WARNING "Can't use any sanitizers for target ${TARGET}, "
 | 
					            message(WARNING "Sanitizers for target ${TARGET} may not be"
 | 
				
			||||||
                    "because it uses an unknown compiler. Target will be "
 | 
					                    " usable, because it uses no or an unknown compiler. "
 | 
				
			||||||
                    "compiled without sanitizers.")
 | 
					                    "This is a false warning for targets using only "
 | 
				
			||||||
            return()
 | 
							    "object lib(s) as input.")
 | 
				
			||||||
        endif ()
 | 
					        endif ()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Add sanitizers for target.
 | 
					        # Add sanitizers for target.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user