From 3f615258df28295d8dc3c5f02369dbf89dadb9e5 Mon Sep 17 00:00:00 2001 From: Christopher Dilks Date: Wed, 17 Apr 2024 12:07:31 -0400 Subject: [PATCH] feat: add `with_dataframes` var --- CMakeLists.txt | 1 + cmake/hipo4.pc.in | 2 ++ extensions/dataframes/CMakeLists.txt | 1 + 3 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 168a90c..10b9075 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,6 +147,7 @@ list(APPEND PKGCONFIG_LIBS hipo4) # build extensions option(BUILD_DATAFRAMES "Build dataframes extension" ON) +set(WITH_DATAFRAMES FALSE) if(BUILD_DATAFRAMES) set(DATAFRAME_IN_MAIN TRUE) add_subdirectory(extensions/dataframes) diff --git a/cmake/hipo4.pc.in b/cmake/hipo4.pc.in index b6281ee..a9f593d 100644 --- a/cmake/hipo4.pc.in +++ b/cmake/hipo4.pc.in @@ -2,6 +2,8 @@ prefix=${pcfiledir}/../.. includedir=${prefix}/include libdir=${prefix}/lib +with_dataframes=@WITH_DATAFRAMES@ + Name: hipo4 Description: High Performance Output data format for experimental physics Version: @HIPO_VERSION@ diff --git a/extensions/dataframes/CMakeLists.txt b/extensions/dataframes/CMakeLists.txt index 5ee631e..5b4be09 100644 --- a/extensions/dataframes/CMakeLists.txt +++ b/extensions/dataframes/CMakeLists.txt @@ -134,4 +134,5 @@ else() list(APPEND PKGCONFIG_LIBS HipoDataFrame) set(PKGCONFIG_LIBS ${PKGCONFIG_LIBS} PARENT_SCOPE) + set(WITH_DATAFRAMES TRUE PARENT_SCOPE) endif()