-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
format cmake files and sources
make format again
make format again
make format again
cleanup cmake files
make example useable to test installed cmake packages
@jenisys you should enable the GitHub Actions under Settings! |
@@ -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 |
There was a problem hiding this comment.
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?
@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)
include(ccache) | ||
include(cxx.setup_project) | ||
|
||
find_package(simplelog COMPONENTS null spdlog syslog) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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!
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!
While this PR may contains some improvements and fixes it violates the best practices for an PR:
|
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)