Sha256: 24781f975f8d49cd044c07cf010050593317e66575ea1002b4b896e8b96bb45f

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

include(CheckPrototypeDefinition)

function(check_prototype_definition_safe function prototype return header variable)
	# temporarily save CMAKE_C_FLAGS and disable warnings about unused
	# unused functions and parameters, otherwise they will always fail
	# if ENABLE_WERROR is on
	set(SAVED_CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")

	disable_warnings(unused-function)
	disable_warnings(unused-parameter)

	check_prototype_definition("${function}" "${prototype}" "${return}" "${header}" "${variable}")

	# restore CMAKE_C_FLAGS
	set(CMAKE_C_FLAGS "${SAVED_CMAKE_C_FLAGS}")
endfunction()

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rugged-1.7.2 vendor/libgit2/cmake/CheckPrototypeDefinitionSafe.cmake
rugged-1.7.1 vendor/libgit2/cmake/CheckPrototypeDefinitionSafe.cmake