We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77cc27d commit 30f60a7Copy full SHA for 30f60a7
src/realsense2-all.cmake
@@ -75,6 +75,9 @@ function( bundle_static_library target_name bundle_name )
75
76
set( ar_tool ${CMAKE_AR} )
77
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"
81
set( ar_tool ${CMAKE_CXX_COMPILER_AR} )
82
endif()
83
0 commit comments