opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
758 stars 308 forks source link

CMake file for Example3DWalking fails out of the box #3740

Open aymanhab opened 3 months ago

aymanhab commented 3 months ago

CMake complains that CopyOpenSimDLLs already exists (add custom target). Commenting the lines make the build succeed.

gilserrancoli commented 3 months ago

This is the issue obtained:

CMake Error at C:/OpenSim 4.5/cmake/UseOpenSim.cmake:619 (add_custom_target): add_custom_target cannot create target "Copy_OpenSim_DLLs" because another target with the same name already exists. The existing target is a custom target created in source directory "C:/OpenSim 4.5/ModelsScripts/Code/CPP/Moco/example3DWalking - Copy". See documentation for policy CMP0002 for more details. Call Stack (most recent call first): CMakeLists.txt:16 (OpenSimCopyDependencyDLLsForWin)