File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ if(VISP_ASAN)
4242 endif ()
4343endif ()
4444
45- # Windows/MSVC specific defaults
45+ # Platform specific defaults
4646
47+ # Windows
4748if (MSVC )
4849 list (APPEND VISP_COMP_OPTIONS /utf-8)
4950 list (APPEND VISP_DEFINITIONS _CRT_SECURE_NO_WARNINGS)
@@ -52,6 +53,12 @@ if(MSVC)
5253 list (APPEND VISP_COMP_OPTIONS /Zi)
5354 list (APPEND VISP_LINK_OPTIONS /DEBUG)
5455 endif ()
56+ # Linux
57+ elseif (UNIX AND NOT APPLE )
58+ if (VISP_CI OR VISP_DEV)
59+ # Disable omitting dependencies from ELF binaries so they can be found via RPATH
60+ list (APPEND VISP_LINK_OPTIONS -Wl,--no -as-needed)
61+ endif ()
5562endif ()
5663
5764# Configure warnings
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ target_include_directories(vision-cli PRIVATE ..)
44target_compile_definitions (vision-cli PRIVATE ${VISP_ASSERT} ${VISP_DEFINITIONS} )
55target_compile_options (vision-cli PRIVATE ${VISP_WARNINGS} ${VISP_COMP_OPTIONS} )
66target_link_options (vision-cli PRIVATE ${VISP_LINK_OPTIONS} )
7- target_link_libraries (vision-cli PRIVATE visioncpp ${VISP_FMT_LINK} )
7+ target_link_libraries (vision-cli PRIVATE ggml visioncpp ${VISP_FMT_LINK} )
You can’t perform that action at this time.
0 commit comments