Add DEPENDENCY_ADDED property (#50)

* add DEPENDENCY_ADDED property

* update examples

* Update README.md

* Update README.md

* Update CPM.cmake

* Update README.md
This commit is contained in:
Lars Melchior
2019-05-20 01:52:55 +02:00
committed by GitHub
parent 275a12f2d8
commit bf5e9ebafb
6 changed files with 36 additions and 20 deletions

View File

@@ -18,8 +18,10 @@ CPMAddPackage(
"BENCHMARK_ENABLE_TESTING Off"
)
# patch google benchmark target
set_target_properties(benchmark PROPERTIES CXX_STANDARD 17)
if (benchmark_ADDED)
# patch google benchmark target
set_target_properties(benchmark PROPERTIES CXX_STANDARD 17)
endif()
# ---- Executable ----