Removed continue statement in FindASan.cmake
Older CMake versions are not capable of continue in foreach functions.
This commit is contained in:
		@@ -42,18 +42,12 @@ set(CMAKE_REQUIRED_QUIET ${ASan_FIND_QUIETLY})
 | 
			
		||||
 | 
			
		||||
set(_ASAN_REQUIRED_VARS)
 | 
			
		||||
foreach (LANG C CXX)
 | 
			
		||||
    if (NOT CMAKE_${LANG}_COMPILER_LOADED)
 | 
			
		||||
        continue()
 | 
			
		||||
    endif()
 | 
			
		||||
 | 
			
		||||
    if (CMAKE_${LANG}_COMPILER_LOADED)
 | 
			
		||||
        list(APPEND _ASAN_REQUIRED_VARS ASAN_${LANG}_FLAGS)
 | 
			
		||||
 | 
			
		||||
        # If flags for this compiler were already found, do not try to find them
 | 
			
		||||
        # again.
 | 
			
		||||
    if (ASAN_${LANG}_FLAGS)
 | 
			
		||||
        continue()
 | 
			
		||||
    endif ()
 | 
			
		||||
 | 
			
		||||
        if (NOT ASAN_${LANG}_FLAGS)
 | 
			
		||||
            foreach (FLAG ${ASAN_FLAG_CANDIDATES})
 | 
			
		||||
                if(NOT CMAKE_REQUIRED_QUIET)
 | 
			
		||||
                    message(STATUS "Try Address sanitizer ${LANG} flag = [${FLAG}]")
 | 
			
		||||
@@ -77,6 +71,8 @@ foreach (LANG C CXX)
 | 
			
		||||
                    break()
 | 
			
		||||
                endif ()
 | 
			
		||||
            endforeach()
 | 
			
		||||
        endif ()
 | 
			
		||||
    endif ()
 | 
			
		||||
endforeach ()
 | 
			
		||||
 | 
			
		||||
set(CMAKE_REQUIRED_QUIET ${CMAKE_REQUIRED_QUIET_SAVE})
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user