@@ -135,7 +135,7 @@ from the internet, we turn this option OFF." ON)
135135set (SIMBODY_HOME $ENV{SIMBODY_HOME} CACHE
136136 PATH "The location of the Simbody installation to use; you can change this. Set as empty to let CMake search for Simbody automatically." )
137137
138- option (OPENSIM_COPY_DEPENDENCIES "Copy Simbody, ezc3d and BTK into the
138+ option (OPENSIM_COPY_DEPENDENCIES "Copy Simbody and ezc3d into the
139139OpenSim installation. This should be set to ON when making a relocatable
140140distribution, and should be set to OFF when packaging for Homebrew, Debian,
141141etc. On Linux and macOS: we use relative RPATHs when ON, and absolute RPATHs
@@ -144,7 +144,7 @@ BUILD_PYTHON_WRAPPING is ON, so if this OFF, a warning is thrown." ON)
144144mark_as_advanced (OPENSIM_COPY_DEPENDENCIES)
145145
146146option (OPENSIM_PYTHON_STANDALONE "Make the Python package standalone, meaning
147- the OpenSim (and Simbody, ezc3d and BTK ) shared libraries it depends on are copied
147+ the OpenSim (and Simbody and ezc3d ) shared libraries it depends on are copied
148148into the package. If you are building OpenSim on the same machine on which you
149149plan to use it, you can leave this OFF. If you are distributing OpenSim to
150150other computers, you should turn this ON. If macOS, this option affects how
@@ -640,9 +640,9 @@ if(UNIX) # Linux and macOS
640640 # Add the automatically determined parts of the RPATH which point
641641 # to directories outside the build tree to the install RPATH.
642642 # If we are copying Simbody into OpenSim's installation, then
643- # there's no need to link to the libraries in Simbody's, ezc3d's or BTK 's
643+ # there's no need to link to the libraries in Simbody's or ezc3d 's
644644 # original installations. Furthermore, we may be distributing OpenSim
645- # to other computers that will not have our original Simbody, ezc3d or BTK
645+ # to other computers that will not have our original Simbody or ezc3d
646646 # installations, and so the RPATH would point to a nonexistant
647647 # directory on others' computers.
648648 set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
@@ -696,11 +696,10 @@ endif()
696696
697697
698698set (OPENSIM_C3D_PARSER None CACHE STRING
699- "Compile OpenSim with a C3D parser ? ezc3d or BTK provide C3D reading." )
700- set_property (CACHE OPENSIM_C3D_PARSER PROPERTY STRINGS "ezc3d" "BTK" " None" )
699+ "Compile OpenSim with a C3D parser ? ezc3d provide C3D reading." )
700+ set_property (CACHE OPENSIM_C3D_PARSER PROPERTY STRINGS "ezc3d" "None" )
701701if (${OPENSIM_C3D_PARSER} STREQUAL "ezc3d" )
702702 set (WITH_EZC3D true )
703- set (WITH_BTK false )
704703 set (ezc3d_hint "${OPENSIM_DEPENDENCIES_DIR} /ezc3d/lib/cmake/ezc3d" )
705704 find_package (ezc3d REQUIRED HINTS "${ezc3d_hint} " )
706705 add_definitions (-DWITH_EZC3D)
@@ -716,32 +715,12 @@ if(${OPENSIM_C3D_PARSER} STREQUAL "ezc3d")
716715 OpenSimInstallDependencyLibraries(ezc3d "${ezc3d_DIR} /../../../bin"
717716 "${ezc3d_DIR} /../../../lib" "${OPENSIM_INSTALL_PYTHONDIR} /opensim" )
718717 endif ()
719- elseif (${OPENSIM_C3D_PARSER} STREQUAL "BTK" )
720- set (WITH_EZC3D false )
721- unset (ezc3d_LIBRARY_DIR CACHE )
722- unset (ezc3d_LIBRARY)
723- unset (ezc3d_INCLUDE_DIR CACHE )
724- set (WITH_BTK true )
725-
726- # If compiling with BTK, find and use it.
727- find_package (BTK
728- REQUIRED
729- HINTS "${OPENSIM_DEPENDENCIES_DIR} /BTK/share/btk-0.4dev" )
730- include (${BTK_USE_FILE} )
731- add_definitions (-DWITH_BTK)
732- OpenSimCopyDependencyDLLsForWin(DEP_NAME BTK
733- DEP_BIN_DIR ${BTK_INSTALL_PREFIX} /bin)
734- if (BUILD_PYTHON_WRAPPING AND OPENSIM_PYTHON_STANDALONE)
735- OpenSimInstallDependencyLibraries(BTK "${BTK_INSTALL_PREFIX} "
736- "${BTK_LIBRARY_DIRS} " "${OPENSIM_INSTALL_PYTHONDIR} /opensim" )
737- endif ()
738718
739719else ()
740720 set (WITH_EZC3D false )
741721 unset (ezc3d_LIBRARY_DIR CACHE )
742722 unset (ezc3d_LIBRARY)
743723 unset (ezc3d_INCLUDE_DIR CACHE )
744- set (WITH_BTK false )
745724endif ()
746725
747726find_package (spdlog REQUIRED
@@ -956,15 +935,6 @@ if(${OPENSIM_COPY_DEPENDENCIES})
956935 DESTINATION "${CMAKE_INSTALL_LIBDIR} " )
957936 endif ()
958937
959- # BTK
960- # ---
961- if (NOT WIN32 )
962- # LIB: .so files on Linux, .dylib on macOS
963- file (GLOB btk_desired_lib_files "${BTK_LIBRARY_DIRS} /*BTK*" )
964- install (FILES ${btk_desired_lib_files}
965- DESTINATION "${CMAKE_INSTALL_LIBDIR} " )
966- endif ()
967-
968938 # spdlog
969939 # ------
970940 install (DIRECTORY "${spdlog_DIR} /../../../"
0 commit comments