Skip to content

Commit bdcb3a4

Browse files
committed
CMake - Introduce optional linking of unirec and unirec++ libraries
TG-35
1 parent ec3a29f commit bdcb3a4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/wif/CMakeLists.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,23 @@ set(LIBWIF_SOURCES
1212
storage/ipAddress.cpp
1313
)
1414

15-
if(BUILD_WITH_UNIREC)
16-
list(APPEND LIBWIF_SOURCES
17-
reporters/unirecReporter.cpp
18-
)
19-
endif()
20-
2115
set(LIBWIF_LIBS
2216
Boost::regex
2317
Python3::Python
2418
Python3::NumPy
2519
dstlib::dst
2620
)
2721

22+
if(BUILD_WITH_UNIREC)
23+
list(APPEND LIBWIF_SOURCES
24+
reporters/unirecReporter.cpp
25+
)
26+
list(APPEND LIBWIF_LIBS
27+
unirec::unirec
28+
unirec::unirec++
29+
)
30+
endif()
31+
2832
add_library(wif SHARED ${LIBWIF_SOURCES})
2933
target_link_libraries(wif PRIVATE ${LIBWIF_LIBS})
3034
target_include_directories(wif PUBLIC ${CMAKE_SOURCE_DIR}/include)

0 commit comments

Comments
 (0)