1
0
Fork 0
mirror of https://github.com/TheLartians/ModernCppStarter.git synced 2025-09-01 06:30:52 +02:00

cleanup build files

use strict -std=c++20
update cmake-format config file
This commit is contained in:
ClausKlein 2021-02-13 21:56:31 +01:00
parent 1aad14a6fa
commit 7f36b7cb86
12 changed files with 70 additions and 164 deletions

View file

@ -26,10 +26,12 @@ file(GLOB sources CONFIGURE_DEPENDS source/*.cpp)
add_executable(GreeterStandalone ${sources})
# TODO: why rename in this way?
set_target_properties(GreeterStandalone PROPERTIES CXX_STANDARD 17 OUTPUT_NAME "Greeter")
# TODO: why rename in this way? Seems only for CI with GitHub actions! CK
set_target_properties(
GreeterStandalone PROPERTIES CXX_STANDARD ${CMAKE_CXX_STANDARD} OUTPUT_NAME "Greeter"
)
# WORKAROUND for ALIAS target is missing error! CK
# WORKAROUND missing ALIAS target error! CK
if(NOT TARGET cxxopts::cxxopts)
add_library(cxxopts::cxxopts ALIAS cxxopts)
endif()