[cmake-developers] [CMake 0015370]: find_path MinGW not working while find_library does
Mantis Bug Tracker
mantis at public.kitware.com
Fri Jan 23 19:18:49 EST 2015
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15370
======================================================================
Reported By: Lectem
Assigned To:
======================================================================
Project: CMake
Issue ID: 15370
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-01-23 19:18 EST
Last Modified: 2015-01-23 19:18 EST
======================================================================
Summary: find_path MinGW not working while find_library does
Description:
I couldn't get most of my libraries detected with find_package.
I figured out that the libraries files were found but not the headers.
For example :
find_path(GLEW_INCLUDE_DIR GL/glew.h)
will not work while
find_library(GLEW_LIBRARY glew32)
does.
FIND_PACKAGE(GLEW)
Does also set GLEW_LIBRARY and GLEW_LIBRARIES but not GLEW_INCLUDE_DIR.
Steps to Reproduce:
FIND_PACKAGE(GLEW)
IF(GLEW_FOUND)
MESSAGE(STATUS "GLEW found.")
MESSAGE(STATUS "Detected GLEW path is : ${GLEW_LIBRARIES}")
ENDIF(GLEW_FOUND)
IF(GLEW_LIBRARIES)
MESSAGE(STATUS "Detected GLEW_LIBRARIES path is : ${GLEW_LIBRARIES}")
ENDIF(GLEW_LIBRARIES)
IF(GLEW_INCLUDE_DIRS)
MESSAGE(STATUS "Detected GLEW_INCLUDE_DIRS path is : ${GLEW_INCLUDE_DIRS}")
ELSE(GLEW_INCLUDE_DIRS)
MESSAGE(STATUS "Couldn't find GLEW_INCLUDE_DIRS")
ENDIF(GLEW_INCLUDE_DIRS)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-01-23 19:18 Lectem New Issue
======================================================================
More information about the cmake-developers
mailing list