Skip to content

Commit

Permalink
Ensure 2-empty lines between each function and macro
Browse files Browse the repository at this point in the history
  • Loading branch information
jhol committed Oct 30, 2023
1 parent da754b8 commit a292f5d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conan_provider.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function(detect_cxx_standard CXX_STANDARD)
endif()
endfunction()


macro(detect_gnu_libstdcxx)
# _CONAN_IS_GNU_LIBSTDCXX true if GNU libstdc++
check_cxx_source_compiles("
Expand All @@ -118,6 +119,7 @@ macro(detect_gnu_libstdcxx)
unset (_CONAN_GNU_LIBSTDCXX_IS_CXX11_ABI)
endmacro()


macro(detect_libcxx)
# _CONAN_IS_LIBCXX true if LLVM libc++
check_cxx_source_compiles("
Expand Down Expand Up @@ -249,6 +251,7 @@ function(detect_compiler COMPILER COMPILER_VERSION COMPILER_RUNTIME COMPILER_RUN
set(${COMPILER_RUNTIME_TYPE} ${_COMPILER_RUNTIME_TYPE} PARENT_SCOPE)
endfunction()


function(detect_build_type BUILD_TYPE)
get_property(_MULTICONFIG_GENERATOR GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if(NOT _MULTICONFIG_GENERATOR)
Expand All @@ -258,6 +261,7 @@ function(detect_build_type BUILD_TYPE)
endif()
endfunction()


macro(append_compiler_executables_configuration)
set(_conan_c_compiler "")
set(_conan_cpp_compiler "")
Expand Down Expand Up @@ -441,6 +445,7 @@ function(conan_version_check)
endif()
endfunction()


macro(construct_profile_argument argument_variable profile_list)
set(${argument_variable} "")
if("${profile_list}" STREQUAL "CONAN_HOST_PROFILE")
Expand Down Expand Up @@ -527,6 +532,7 @@ cmake_language(
SUPPORTED_METHODS FIND_PACKAGE
)


macro(conan_provide_dependency_check)
set(_CONAN_PROVIDE_DEPENDENCY_INVOKED FALSE)
get_property(_CONAN_PROVIDE_DEPENDENCY_INVOKED GLOBAL PROPERTY CONAN_PROVIDE_DEPENDENCY_INVOKED)
Expand All @@ -543,6 +549,7 @@ macro(conan_provide_dependency_check)
unset(_CONAN_PROVIDE_DEPENDENCY_INVOKED)
endmacro()


# Add a deferred call at the end of processing the top-level directory
# to check if the dependency provider was invoked at all.
cmake_language(DEFER DIRECTORY "${CMAKE_SOURCE_DIR}" CALL conan_provide_dependency_check)
Expand Down

0 comments on commit a292f5d

Please sign in to comment.