diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-26 23:11:13 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-10-18 08:30:14 -0400 |
| commit | 52693ab44efe33d9340038c3936b9e75a70fe7bb (patch) | |
| tree | 4274ac63ceb318a737c30699725ec3eb95dbd5c9 /examples | |
| parent | e1be28c7cc6a352078ef8ce9ce8234a5f9a0a27a (diff) | |
| download | libgit2-52693ab44efe33d9340038c3936b9e75a70fe7bb.tar.gz | |
cmake: stylistic refactoring
Ensure that we always use lowercase function names, and that we do not
have spaces preceding open parentheses, for consistency.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/CMakeLists.txt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 8cc72b35e..a7970a6d0 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,15 +1,15 @@ -INCLUDE_DIRECTORIES(${LIBGIT2_INCLUDES}) -INCLUDE_DIRECTORIES(SYSTEM ${LIBGIT2_SYSTEM_INCLUDES}) +include_directories(${LIBGIT2_INCLUDES}) +include_directories(SYSTEM ${LIBGIT2_SYSTEM_INCLUDES}) -FILE(GLOB LG2_SOURCES *.c *.h) -ADD_EXECUTABLE(lg2 ${LG2_SOURCES}) -SET_TARGET_PROPERTIES(lg2 PROPERTIES C_STANDARD 90) +file(GLOB LG2_SOURCES *.c *.h) +add_executable(lg2 ${LG2_SOURCES}) +set_target_properties(lg2 PROPERTIES C_STANDARD 90) # Ensure that we do not use deprecated functions internally -ADD_DEFINITIONS(-DGIT_DEPRECATE_HARD) +add_definitions(-DGIT_DEPRECATE_HARD) -IF(WIN32 OR ANDROID) - TARGET_LINK_LIBRARIES(lg2 git2) -ELSE() - TARGET_LINK_LIBRARIES(lg2 git2 pthread) -ENDIF() +if(WIN32 OR ANDROID) + target_link_libraries(lg2 git2) +else() + target_link_libraries(lg2 git2 pthread) +endif() |
