File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,10 @@ set(@CMAKE_PROJECT_NAME@_JAR_FILE
75
75
# ------------
76
76
if (@OPENSIM_COPY_DEPENDENCIES@) # OPENSIM_COPY_DEPENDENCIES
77
77
# Find the copies of Simbody and spdlog within the OpenSim installation.
78
- # We pre-define these variables because finding Simbody redefines variables
79
- # that we need for finding spdlog.
78
+ # We define _SIMBODY_PATH and _SPDLOG_PATH before find_package(Simbody)
79
+ # because finding Simbody redefines the PACKAGE_PREFIX_DIR variable
80
+ # that appears in this file after configuring, thereby incorrectly
81
+ # causing CMake to look for spdlog within Simbody's installation.
80
82
set (_SIMBODY_PATH "@PACKAGE_OPENSIM_INSTALL_SIMBODYDIR@" )
81
83
set (_SPDLOG_PATH "@PACKAGE_OPENSIM_INSTALL_SPDLOGDIR@" )
82
84
find_package (Simbody @SIMBODY_VERSION_TO_USE@ REQUIRED
You can’t perform that action at this time.
0 commit comments