Skip to content

Commit

Permalink
Removed CTBENCH_PORTABLE, now relying on ctbench_FOUND to find out wh…
Browse files Browse the repository at this point in the history
…ether the project was imported or not
  • Loading branch information
JPenuchot committed Mar 29, 2022
1 parent 9b8d56f commit 8fe9977
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ export(

install(EXPORT ctbench-targets DESTINATION ctbench)

set(CTBENCH_PORTABLE ON PARENT_SCOPE)

include(cmake/benchmarking.cmake)
4 changes: 2 additions & 2 deletions cmake/benchmarking.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 8fe9977

Please sign in to comment.