From b6dd78aa6a7667985c69e8a0b08cca4ddbb724ed Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 15 Apr 2024 15:28:26 +0200 Subject: [PATCH] Install benchmarks in libexec --- CMakeLists.txt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 36fb051..b3f15d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,18 +80,11 @@ find_package(Tampi) set_property(GLOBAL PROPERTY bench6_list "") macro(mk_bench NAME) - if(NOT "${NAME}" MATCHES "b6_.*") - message(FATAL_ERROR "benchmark name must begin with b6_: ${NAME}") - endif() add_executable(${NAME}) - get_property(BENCH6_LIST GLOBAL PROPERTY bench6_list) - #message(STATUS "Before BENCH6_LIST=${BENCH6_LIST}") list(APPEND BENCH6_LIST ${NAME}) - #message(STATUS "After BENCH6_LIST=${BENCH6_LIST}") set_property(GLOBAL PROPERTY bench6_list "${BENCH6_LIST}") - - install(TARGETS ${NAME} RUNTIME DESTINATION bin) + install(TARGETS ${NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_LIBEXECDIR}") endmacro() add_subdirectory(src)