diff --git a/libs/CMakeLists.txt b/libs/CMakeLists.txt index 1e002d4..dc44e32 100644 --- a/libs/CMakeLists.txt +++ b/libs/CMakeLists.txt @@ -2,19 +2,18 @@ set( LIBRARY_CPP_FILES Snapshot.cpp PerfGroup.cpp PerfUtils.cpp CpuUtils.cpp ) if ( HAVE_LIBPFM ) set( LIBRARY_DEPENDENCIES pfm ) endif() -if ( Armadillo_FOUND ) +if ( Armadillo_FOUND AND Boost_CONTAINER_FOUND ) list( APPEND LIBRARY_CPP_FILES Regression.cpp ) - list( APPEND LIBRARY_DEPENDENCIES armadillo ) + list( APPEND LIBRARY_DEPENDENCIES armadillo Boost::container ) endif() add_library( tinyperfstats SHARED ${LIBRARY_CPP_FILES} ) target_link_libraries( tinyperfstats ${LIBRARY_DEPENDENCIES} ) set( HEADER_LIST Allocators.h BitUtils.h CpuUtils.h DateUtils.h Histogram.h KahanSum.h MicroStats.h PerfCounter.h Snapshot.h StringUtils.h Ticker.h TimingUtils.h Regression.h ) -foreach( HEADER ${HEADER_LIST} ) - file( REAL_PATH ${HEADER} ABSHEADER BASE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) - list( APPEND ALLHEADERS ${ABSHEADER} ) +foreach( header ${HEADER_LIST} ) + list( APPEND ALLHEADERS "${CMAKE_CURRENT_SOURCE_DIR}/${header}" ) endforeach() set_target_properties( tinyperfstats PROPERTIES PUBLIC_HEADER "${ALLHEADERS}" ) -target_include_directories( tinyperfstats PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" ) \ No newline at end of file +target_include_directories( tinyperfstats PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}" )