Skip to content

Commit 30f60a7

Browse files
committed
fixup! add realsense2-all, a single library bundle
1 parent 77cc27d commit 30f60a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/realsense2-all.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ function( bundle_static_library target_name bundle_name )
7575

7676
set( ar_tool ${CMAKE_AR} )
7777
if( CMAKE_INTERPROCEDURAL_OPTIMIZATION )
78+
# This is link-time-optimization (LTO): the archive tool can be something else,
79+
# depending on the compiler. But "CMake doesn't seem to honor CMAKE_AR when
80+
# CMAKE_INTERPROCEDURAL_OPTIMIZATION is set to TRUE"
7881
set( ar_tool ${CMAKE_CXX_COMPILER_AR} )
7982
endif()
8083

0 commit comments

Comments
 (0)