Skip to content

Commit 496dc99

Browse files
Ensure calibration library in ur_calibration is always built as static (backport #1667) (#1669)
CMake permits to set the BUILD_SHARED_LIBS=ON variable to specify if add_library calls without specifying explicitly STATIC or SHARED build a shared library. However, in the case of the calibration library, the library itself is not meant to be installed, so even if BUILD_SHARED_LIBS=ON, the calibration library should be built as STATIC, otherwise at runtime the calibration_correction can fail because it doesn't find the shared library. Co-authored-by: Silvio Traversaro <silvio@traversaro.it>
1 parent be1a538 commit 496dc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ur_calibration/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ find_package(ur_client_library REQUIRED)
2424
## Build ##
2525
###########
2626

27-
add_library(calibration
27+
add_library(calibration STATIC
2828
src/calibration.cpp
2929
src/calibration_consumer.cpp
3030
)

0 commit comments

Comments
 (0)