From: <sm...@us...> - 2008-11-20 09:22:43
|
Revision: 9003 http://plplot.svn.sourceforge.net/plplot/?rev=9003&view=rev Author: smekal Date: 2008-11-20 09:22:31 +0000 (Thu, 20 Nov 2008) Log Message: ----------- The FindGDI32.cmake module is not needed anymore. The GDI32 must be always provided by the compiler and the library is now searched for in wingcc.cmake. This has also the advantage, that the full path to the library is determined. Removed Paths: ------------- trunk/cmake/modules/FindGDI32.c trunk/cmake/modules/FindGDI32.cmake Deleted: trunk/cmake/modules/FindGDI32.c =================================================================== --- trunk/cmake/modules/FindGDI32.c 2008-11-20 09:18:57 UTC (rev 9002) +++ trunk/cmake/modules/FindGDI32.c 2008-11-20 09:22:31 UTC (rev 9003) @@ -1,8 +0,0 @@ -#include <windows.h> - -int main() -{ - HDC hDC=NULL; - RECT clientRect; - DPtoLP(hDC, (LPPOINT)&clientRect, 2); -} Deleted: trunk/cmake/modules/FindGDI32.cmake =================================================================== --- trunk/cmake/modules/FindGDI32.cmake 2008-11-20 09:18:57 UTC (rev 9002) +++ trunk/cmake/modules/FindGDI32.cmake 2008-11-20 09:22:31 UTC (rev 9003) @@ -1,44 +0,0 @@ -# Find gdi32 header and library for wingcc driver -# - -# This module defines the following uncached variables: -# GDI32_FOUND, if false, do not try to use gdi32. -# GDI32_LIBRARIES, the libraries to link against to use gdi32 - -# Borland compiler doesn't know the gdi32 library -IF(NOT BORLAND) - find_library(GDI32_LIBRARY gdi32) -ENDIF(NOT BORLAND) - -if(BORLAND OR GDI32_LIBRARY) - try_compile(TESTGDI32 - ${CMAKE_BINARY_DIR} - ${CMAKE_SOURCE_DIR}/cmake/modules/FindGDI32.c - CMAKE_FLAGS -DLINK_LIBRARIES=${GDI32_LIBRARY} - OUTPUT_VARIABLE OUTPUT) - if(TESTGDI32) - set(GDI32_FOUND ON) - set(GDI32_LIBRARIES ${GDI32_LIBRARY}) - file(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeOutput.log - "Determining if gdi32 is available passed with " - "the following output:\n${OUTPUT}\n\n") - else(TESTGDI32) - set(GDI32_FOUND OFF) - set(GDI32_LIBRARIES "") - file(APPEND ${CMAKE_BINARY_DIR}/CMakeFiles/CMakeError.log - "Determining if gdi32 is available failed with " - "the following output:\n${OUTPUT}\n\n") - endif(TESTGDI32) -endif(BORLAND OR GDI32_LIBRARY) - -if(GDI32_FOUND) - if(NOT GDI32_FIND_QUIETLY) - message(STATUS "FindGDI32: Found gdi32 header file and library") - endif(NOT GDI32_FIND_QUIETLY) -else(GDI32_FOUND) - if(GDI32_FIND_REQUIRED) - message(FATAL_ERROR - "FindGDI32: Could not find gdi32 header file and/or library" - ) - endif(GDI32_FIND_REQUIRED) -endif(GDI32_FOUND) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |