MantisBT - CMake
View Issue Details
0011001CMakeCMakepublic2010-07-16 06:322016-06-10 14:31
bcmpinc 
Bill Hoffman 
normalmajoralways
closedmoved 
CMake-2-8 
 
0011001: CMake's find_library does not look in mingw's lib directory.
When using the find_library method when generating msys makefiles, CMake does not find libraries in mingw's default library directory.

So if you have mingw installed in c:\mingw, then
find_library(GLUT_LIBRARY glut)
will return NOT_FOUND instead of "c:\mingw\lib\libglut.a".

Possible workarounds:
1. add the line:
string(REGEX REPLACE "/bin/.+" "/lib" CMAKE_LIBRARY_PATH "${CMAKE_CXX_COMPILER}")

2. add -lglut to the linker flags. (not portable)
No tags attached.
Issue History
2010-07-16 06:32bcmpincNew Issue
2011-01-17 16:20David ColeAssigned To => Bill Hoffman
2011-01-17 16:20David ColeStatusnew => assigned
2016-06-10 14:28Kitware RobotNote Added: 0041729
2016-06-10 14:28Kitware RobotStatusassigned => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0041729)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.