[CMake] Problem finding DLLS to use with tests

aaron.meadows at thomsonreuters.com aaron.meadows at thomsonreuters.com
Thu Jun 23 11:37:50 EDT 2011


Can you post your CMakeLists.txt?  Did you get different errors for each
of the 3 solutions you tried, or were they all the same error?  What was
the exception code?

 

Aaron C. Meadows 

From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf
Of Stephen Torri
Sent: Wednesday, June 22, 2011 2:12 PM
To: cmake at cmake.org
Subject: [CMake] Problem finding DLLS to use with tests

 

I am using cmake 2.8 for building MSVC solutions for a project.

The project builds fine as do the tests on Windows. The problem

comes when I try to run the tests. I usually get an error message

that the dependent DLLs cannot be found. I have searched on google

for an answer and came up with a variety of possible solutions. I was

not able to get any of them to work. So I am looking for suggestions.

The methods I found were:

 

1. Add the directory to the DLLs to the PATH environment.

 

2. Copy the DLLs from their installation directory to the directory of
the

    test binary.

 

3. Statically link the dependent libraries to the target
executable/library.

 

I was wondering if someone can point me towards an example, tutorial or

appropriate documentation that shows how I can best solve this problem.

 

Stephen

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110623/29a0d99d/attachment.htm>


More information about the CMake mailing list