From 8fe997784c3a8cee0dfb2808d8d1693e7ab09834 Mon Sep 17 00:00:00 2001 From: Jules P?nuchot Date: Wed, 30 Mar 2022 01:11:09 +0200 Subject: [PATCH] Removed CTBENCH_PORTABLE, now relying on ctbench_FOUND to find out whether the project was imported or not --- CMakeLists.txt | 2 -- cmake/benchmarking.cmake | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc9da87..9e2f28b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,4 @@ export( install(EXPORT ctbench-targets DESTINATION ctbench) -set(CTBENCH_PORTABLE ON PARENT_SCOPE) - include(cmake/benchmarking.cmake) diff --git a/cmake/benchmarking.cmake b/cmake/benchmarking.cmake index 1f523ff..c67fb7b 100644 --- a/cmake/benchmarking.cmake +++ b/cmake/benchmarking.cmake @@ -6,7 +6,7 @@ #@ ## ============================================================================= -if(CTBENCH_PORTABLE) +if(NOT ctbench_FOUND) set(GRAPHER_PREFIX ${CMAKE_BINARY_DIR}/grapher/ PARENT_SCOPE) set(TTW_PREFIX ${CMAKE_BINARY_DIR}/ttw/ PARENT_SCOPE) @@ -38,7 +38,7 @@ function(_ctbench_internal_add_compile_benchmark target_name output source ${target_name} PROPERTIES CXX_COMPILER_LAUNCHER "${TTW_PREFIX}ctbench-ttw;${output}") - if(CTBENCH_PORTABLE) + if(NOT ctbench_FOUND) add_dependencies(${target_name} ctbench-ttw) endif()