mirror of
https://github.com/cpm-cmake/CPM.cmake.git
synced 2025-11-16 22:27:41 -05:00
update most package versions (#190)
* update most package versions extent build_all.py to inject cmake modules and use Ninja generator * fix build problems while build on debian use SYSTEM include paths (for clang++) we should not use local installed header! * fix banchmark example finalize cmake project code injection as an option * fix build problems on travis CI gtest needs c++17 * Update examples/build_all.py Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com> * reindent py script requested by review indent with only 2 spaces again * changes according the review the gtest build error seems to be a make -j cpucount problem * revert filter too Co-authored-by: Lars Melchior <TheLartians@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@ project(CPMExampleBoost)
|
||||
# ---- Create binary ----
|
||||
|
||||
add_executable(CPMExampleBoost main.cpp)
|
||||
set_target_properties(CPMExampleBoost PROPERTIES CXX_STANDARD 17)
|
||||
target_compile_features(CPMExampleBoost PRIVATE cxx_std_17)
|
||||
|
||||
# ---- Dependencies ----
|
||||
|
||||
@@ -18,4 +18,6 @@ CPMFindPackage(
|
||||
FIND_PACKAGE_ARGUMENTS "COMPONENTS system"
|
||||
)
|
||||
|
||||
target_link_libraries(CPMExampleBoost PRIVATE Boost::system pthread)
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
target_link_libraries(CPMExampleBoost PRIVATE Boost::system Threads::Threads)
|
||||
|
||||
Reference in New Issue
Block a user