X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Date: Wed, 17 Dec 2008 16:04:17 -0500 To: cygwin AT cygwin DOT com Subject: Cmake doesn't seem to find the new OpenGL include files correctly Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Reply-To: cygwin AT cygwin DOT com From: Brian Keener X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Working with a project that uses Cmake/ccmake and OpenGL I noticed that while cmake seems to locate the Libraries for Opengl correctly in /usr/lib/w32api it seems to insist that the include directory is /usr/include and not /usr/include/w32api or /usr/include/opengl (as the latest patch creates). I experimented some with the FindOpenGL.cmake file in /usr/share/cmake-2.6.2/modules and it seems no matter what you put in for paths or the order that you place for the FIND_PATH command for GL/gl.h it will still return /usr/include. Which based on the latest patch and some conflicts that were found after all the X11 rework would not be correct (as I think I understand it) especially since it is find the lib ini w32api as it should. This is probably more related to upstream of cmake but thought the cmake maintainer might want to take a look and confirm my findings or tell me what I am doing wrong. Using a Hello world example: #include #include int main () { printf ("Hello World.\n"); return 0; } and a cmakelists.txt like this: cmake_minimum_required(VERSION 2.0) project(MyProject) add_executable(hello Hello.cpp) FIND_PACKAGE(OpenGL) you will see what I mean. bk -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/