Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: make it works without submodules #8

Closed
wants to merge 27 commits into from

Conversation

ClausKlein
Copy link

@ClausKlein ClausKlein commented Feb 28, 2021

use CMP.cmake
cleanup cmake files
prevent warnings, but not all
setup GitHub Actions for CI see https://github.com/ClausKlein/cxx.simplelog/runs/1998057440?check_suite_focus=true

this fix
#2
#3
#4

and some of (#6)

@ClausKlein ClausKlein marked this pull request as draft February 28, 2021 12:29
@ClausKlein
Copy link
Author

@jenisys you should enable the GitHub Actions under Settings!

.cmake/project-config.cmake.in Outdated Show resolved Hide resolved
@@ -30,7 +30,7 @@ endif()
# SANE DEFAULTS: If ".cmake_project.cxx_standard" is missing
# ---------------------------------------------------------------------------
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17) # Enable C++17 standard
set(CMAKE_CXX_STANDARD 20) # Enable C++20 standard
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should not change this?

examples/CMakeLists.txt Outdated Show resolved Hide resolved
src/simplelog/backend/null/CMakeLists.txt Outdated Show resolved Hide resolved
@ClausKlein
Copy link
Author

@jenisys there is still an open problem: the findsyslog.cmake module is not installed!

So downstream can't use it.

see https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/

now it can be used:
    find_package(simplelog COMPONENTS simplelog null spdlog syslog)
@ClausKlein ClausKlein marked this pull request as ready for review February 28, 2021 20:27
include(ccache)
include(cxx.setup_project)

find_package(simplelog COMPONENTS null spdlog syslog)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jenisys Note: this works now!

)
endif()

if(SIMPLELOG_USE_BACKEND_SYSTEMD)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without this the install cmake config set was not useable!

ClausKlein and others added 8 commits March 1, 2021 20:55
check cppcoreguidlines too
cleanup GNUmakefile to run with clang-tidy
needed patch witch perlscript used
this break MSVC build on windows
this breaks windows build too
Note: WarningsAsErrors will still break the build!
@ClausKlein ClausKlein closed this Mar 5, 2021
Repository owner deleted a comment from ClausKlein Mar 6, 2021
@jenisys
Copy link
Owner

jenisys commented Mar 6, 2021

While this PR may contains some improvements and fixes it violates the best practices for an PR:

  • It is not atomic: It does not address one problem or adds one feature.
    Therefore, it cannot be discussed, adapted and improved and finally accepted or rejected.
  • It is not minimal: It does not contain only the changes that are really needed for this PR title/subject
  • It contains too many unrelated changes (many of which are not really needed and/or not part of the subject of this PR)
  • It reformats the source code and CMake files without any need
  • It tries to add other stuff that should not be part of this PR
  • It tries to fix multiple issues instead of one
  • It tries to use clang-tidy --modernize which just causes changes w/o any real improvements
  • It changes the default C++ standard which is not subject of this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants