Skip to content

Commit

Permalink
Fix IO component install on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmadsen committed Oct 16, 2023
1 parent 55b6d7c commit 34f8f03
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions source/timemory/components/io/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
if(APPLE)
return()
endif()

#
set(NAME io)

file(GLOB_RECURSE header_files ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
file(GLOB_RECURSE source_files ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)

timemory_build_intermediate_library(
USE_INTERFACE
NAME ${NAME}
TARGET ${NAME}-component
CATEGORY COMPONENT
FOLDER ${CMAKE_INSTALL_LIBDIR}
HEADERS ${header_files}
SOURCES ${source_files}
PROPERTY_DEPENDS GLOBAL)
if(APPLE)
timemory_install_header_files(${header_files} ${source_files})
else()
timemory_build_intermediate_library(
USE_INTERFACE
NAME ${NAME}
TARGET ${NAME}-component
CATEGORY COMPONENT
FOLDER ${CMAKE_INSTALL_LIBDIR}
HEADERS ${header_files}
SOURCES ${source_files}
PROPERTY_DEPENDS GLOBAL)
endif()

0 comments on commit 34f8f03

Please sign in to comment.