Skip to content

Commit 548b428

Browse files
committed
Improve comment.
1 parent 3bed4cd commit 548b428

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmake/OpenSimConfig.cmake.in

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ set(@CMAKE_PROJECT_NAME@_JAR_FILE
7575
# ------------
7676
if (@OPENSIM_COPY_DEPENDENCIES@) # OPENSIM_COPY_DEPENDENCIES
7777
# 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.
8082
set(_SIMBODY_PATH "@PACKAGE_OPENSIM_INSTALL_SIMBODYDIR@")
8183
set(_SPDLOG_PATH "@PACKAGE_OPENSIM_INSTALL_SPDLOGDIR@")
8284
find_package(Simbody @SIMBODY_VERSION_TO_USE@ REQUIRED

0 commit comments

Comments
 (0)