mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
Improve coding style consistency
This commit is contained in:
@@ -4,10 +4,10 @@ project(cppformat-test)
|
|||||||
|
|
||||||
add_subdirectory(../.. cppformat)
|
add_subdirectory(../.. cppformat)
|
||||||
|
|
||||||
add_executable(library-test "main.cpp")
|
add_executable(library-test "main.cc")
|
||||||
target_link_libraries(library-test cppformat)
|
target_link_libraries(library-test cppformat)
|
||||||
|
|
||||||
if (TARGET cppformat-header-only)
|
if (TARGET cppformat-header-only)
|
||||||
add_executable(header-only-test "main.cpp")
|
add_executable(header-only-test "main.cc")
|
||||||
target_link_libraries(header-only-test cppformat-header-only)
|
target_link_libraries(header-only-test cppformat-header-only)
|
||||||
endif ()
|
endif ()
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
#include "cppformat/format.h"
|
#include "cppformat/format.h"
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv) {
|
||||||
{
|
|
||||||
for(int i = 0; i < argc; ++i)
|
for(int i = 0; i < argc; ++i)
|
||||||
fmt::print("{}: {}\n", i, argv[i]);
|
fmt::print("{}: {}\n", i, argv[i]);
|
||||||
return 0;
|
|
||||||
}
|
}
|
@@ -4,10 +4,10 @@ project(cppformat-test)
|
|||||||
|
|
||||||
find_package(cppformat REQUIRED)
|
find_package(cppformat REQUIRED)
|
||||||
|
|
||||||
add_executable(library-test "main.cpp")
|
add_executable(library-test "main.cc")
|
||||||
target_link_libraries(library-test cppformat)
|
target_link_libraries(library-test cppformat)
|
||||||
|
|
||||||
if (TARGET cppformat-header-only)
|
if (TARGET cppformat-header-only)
|
||||||
add_executable(header-only-test "main.cpp")
|
add_executable(header-only-test "main.cc")
|
||||||
target_link_libraries(header-only-test cppformat-header-only)
|
target_link_libraries(header-only-test cppformat-header-only)
|
||||||
endif ()
|
endif ()
|
||||||
|
@@ -1,8 +1,6 @@
|
|||||||
#include "cppformat/format.h"
|
#include "cppformat/format.h"
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv) {
|
||||||
{
|
|
||||||
for(int i = 0; i < argc; ++i)
|
for(int i = 0; i < argc; ++i)
|
||||||
fmt::print("{}: {}\n", i, argv[i]);
|
fmt::print("{}: {}\n", i, argv[i]);
|
||||||
return 0;
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user