On 2015-05-13 07:41-0000 Arjen Markus wrote: > Well, that was easy and it brought up the warning immediately: > > > > -- Explicitly setting policy CMP0051 to OLD > > -- Explicitly setting policy CMP0052 to OLD > > -- Explicitly setting policy CMP0053 to OLD > > -- Explicitly setting policy CMP0054 to OLD > > CMake Warning at /usr/share/cmake-3.1.2/Modules/Platform/CYGWIN.cmake:15 > (message): > > CMake no longer defines WIN32 on Cygwin! > > > > (1) If you are just trying to build this project, ignore this warning or > > quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in > > the CMake cache. If later configuration or build errors occur then this > > project may have been written under the assumption that Cygwin is WIN32. > > In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead. > > > > (2) If you are developing this project, add the line > > > > set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required > > > > at the top of your top-level CMakeLists.txt file or set the minimum > > required version of CMake to 2.8.4 or higher. Then teach your project to > > build on Cygwin without WIN32. > > Call Stack (most recent call first): > > /usr/share/cmake-3.1.2/Modules/CMakeSystemSpecificInformation.cmake:36 > (include) > > CMakeLists.txt:39 (project)
That is tremendous progress to get it down to a fairly simple example without having to do an entire PLplot build to see the issue. But please keep debugging the reason why the first simple project did not emit the spurious warning and the second simple project did. For example, from the above the message occurred in the project command so you can remove the next few lines, i.e., if(NOT (CYGWIN OR CMAKE_SYSTEM_NAME STREQUAL "Linux") ) # Latest CMake version as of 2015-05 for all platforms # other than Cygwin or Linux. plplot_cmake_minimum_required(VERSION 3.2.2 FATAL_ERROR) endif(NOT (CYGWIN OR CMAKE_SYSTEM_NAME STREQUAL "Linux") ) to make the second project more similar to the first (presumably without affecting the spurious warning). Also, you can dispense completely with the function and replace plplot_cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) with cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) if(POLICY CMP0051) message(STATUS "Explicitly setting policy CMP0051 to OLD") cmake_policy(SET CMP0051 OLD) endif(POLICY CMP0051) to mimic what goes on in the function. Note, those two changes should make the third simple example identical with the first except for the if(POLICY CMP0051) stanza above. So if that third version emits the spurious error message, then that narrows down the cause to the if, message, or cmake_policy commands, but if the 3rd simple example does not emit the message, then please simplify the second version as follows to see whether that generates the message function(plplot_cmake_minimum_required) cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) if(POLICY CMP0051) message(STATUS "Explicitly setting policy CMP0051 to OLD") cmake_policy(SET CMP0051 OLD) endif(POLICY CMP0051) endfunction(plplot_cmake_minimum_required) plplot_cmake_minimum_required() project(plplot NONE) enable_language(C) message(STATUS "CMake version = ${CMAKE_VERSION}") message(STATUS "CMAKE_SYSTEM_NAME = ${CMAKE_SYSTEM_NAME}") which should be identical to the 3rd version other than using the plplot_cmake_minimum_required function wrapper. Remember, the goal here is to come up with the simplest possible example that emits the spurious message that I can take to the cmake developers. So I have come up with several variations between the current first simple example and current second simple example, but please use your imagination as well to add as little as possible to the first simple example to get it to emit the spurious message. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel