[cmake-developers] MSVC LinkLibraryDependencies settable flag
Brad King
brad.king at kitware.com
Tue Apr 12 09:03:02 EDT 2011
On 04/11/2011 09:29 PM, Rosen Diankov wrote:
> When creating a complex project with DLLs depending on static
> libraries in MSVC, it is necessary to set the
> LinkLibraryDependencies="true" in the project file, or otherwise
> things won't work correctly.
That shouldn't be necessary. In src/libopenrave-core/CMakeLists.txt
replace
add_dependencies(libopenrave-core_static ${COLLADA_LIBRARIES})
with
target_link_libraries(libopenrave-core_static ${COLLADA_LIBRARIES})
CMake will propagate that information to anything that links to the
target.
-Brad
More information about the cmake-developers
mailing list