Apply clang-format and cmake-format
This commit is contained in:
parent
3a4d71ef5c
commit
da830dcef5
|
@ -12,8 +12,8 @@
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
|
@ -274,7 +274,9 @@ function (use_package)
|
||||||
set("PACKAGE_ARGS_${ARGS_PACKAGE_NAME}"
|
set("PACKAGE_ARGS_${ARGS_PACKAGE_NAME}"
|
||||||
"${ARGS_PACKAGE_ARGS}"
|
"${ARGS_PACKAGE_ARGS}"
|
||||||
PARENT_SCOPE)
|
PARENT_SCOPE)
|
||||||
set("${ARGS_PACKAGE_NAME}_VERSION" "${${ARGS_PACKAGE_NAME}_VERSION}" PARENT_SCOPE)
|
set("${ARGS_PACKAGE_NAME}_VERSION"
|
||||||
|
"${${ARGS_PACKAGE_NAME}_VERSION}"
|
||||||
|
PARENT_SCOPE)
|
||||||
endfunction ()
|
endfunction ()
|
||||||
|
|
||||||
function (use_pkg_config_module)
|
function (use_pkg_config_module)
|
||||||
|
|
|
@ -121,7 +121,7 @@ endif ()
|
||||||
# set default CXX_STANDARD for all library, application and test targets
|
# set default CXX_STANDARD for all library, application and test targets
|
||||||
if (NOT META_CXX_STANDARD)
|
if (NOT META_CXX_STANDARD)
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
set(META_CXX_STANDARD 20) # MSVC needs C++ 20 mode for designated initializers
|
set(META_CXX_STANDARD 20) # MSVC needs C++ 20 mode for designated initializers
|
||||||
else ()
|
else ()
|
||||||
set(META_CXX_STANDARD 17)
|
set(META_CXX_STANDARD 17)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
Loading…
Reference in New Issue