Skip to content

Commit 612ffbd

Browse files
committed
Merge remote-tracking branch 'origin/master' into pybind11
2 parents 37ca22a + bae4b0e commit 612ffbd

File tree

3 files changed

+476
-0
lines changed

3 files changed

+476
-0
lines changed

core/CMakeLists.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ else(APPLE)
55
set(CORE_EXTRA_SRCS "")
66
endif(APPLE)
77

8+
if(NOT DEFINED WITHOUT_SUPERTIMESTREAM)
9+
set(WITHOUT_SUPERTIMESTREAM FALSE CACHE BOOL "Build G3SuperTimestream class")
10+
endif()
11+
if(NOT WITHOUT_SUPERTIMESTREAM)
12+
set(CORE_EXTRA_SRCS ${CORE_EXTRA_SRCS} src/G3SuperTimestream.cxx)
13+
endif()
14+
815
add_spt3g_library(core SHARED
916
src/G3Logging.cxx src/G3PrintfLogger.cxx src/G3SyslogLogger.cxx
1017
src/crc32.c src/G3Frame.cxx src/G3Data.cxx src/G3TimeStamp.cxx
@@ -40,6 +47,13 @@ if(FLAC_FOUND)
4047
target_link_libraries(core PRIVATE FLAC::FLAC)
4148
endif()
4249

50+
if(NOT WITHOUT_SUPERTIMESTREAM)
51+
find_package(OpenMP QUIET)
52+
if(OpenMP_FOUND)
53+
target_link_libraries(core PRIVATE OpenMP::OpenMP_CXX)
54+
endif()
55+
endif()
56+
4357
# Link against Z library
4458
if(NOT DEFINED WITH_ZLIB)
4559
set(WITH_ZLIB TRUE CACHE BOOL "Enable gzip fie compression")

0 commit comments

Comments
 (0)