Sha256: f5690cb37a672c92696f618890da93d44eaa07f3cdad9a3515bb08125909ac0f

Contents?: true

Size: 271 Bytes

Versions: 13

Compression:

Stored size: 271 Bytes

Contents

macro(ENABLE_WARNINGS flag)
	add_c_flag_if_supported(-W${flag})
endmacro()

macro(DISABLE_WARNINGS flag)
	add_c_flag_if_supported(-Wno-${flag})
endmacro()

if(ENABLE_WERROR)
	if(MSVC)
		add_compile_options(-WX)
	else()
		add_c_flag_if_supported(-Werror)
	endif()
endif()

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rugged-1.9.0 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.7.2 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.6.5 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.7.1 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.6.3 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.6.2 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.5.1 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.4.5 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.5.0.1 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.5.0 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.4.4 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.4.3 vendor/libgit2/cmake/EnableWarnings.cmake
rugged-1.4.2 vendor/libgit2/cmake/EnableWarnings.cmake