View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011001CMakeCMakepublic2010-07-16 06:322016-06-10 14:31
Reporterbcmpinc 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0011001: CMake's find_library does not look in mingw's lib directory.
DescriptionWhen 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)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0041729)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2010-07-16 06:32 bcmpinc New Issue
2011-01-17 16:20 David Cole Assigned To => Bill Hoffman
2011-01-17 16:20 David Cole Status new => assigned
2016-06-10 14:28 Kitware Robot Note Added: 0041729
2016-06-10 14:28 Kitware Robot Status assigned => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team