[geos-devel] [#317] Build configuration for CMake build system

Mateusz Loskot mateusz at loskot.net
Fri Jan 22 20:40:38 EST 2010


strk wrote:
> On Wed, Jan 20, 2010 at 11:05:40PM +0000, Mateusz Loskot wrote:
>> strk wrote:
> 
>>> /usr/src/geos/cmake_build/include/geos/platform.h:147:3: error:
>>> #error "Could not find finite or isfinite function or macro!" 
>>> make[2]: ***
>>> [src/CMakeFiles/geos.dir/algorithm/distance/DiscreteHausdorffDistance.cpp.o]
>>> Error 1 make[1]: *** [src/CMakeFiles/geos.dir/all] Error 2
>> Yes, I was playing with the platform.h a bit and then I was
>> gradually fixing this kind of issues about missing isnan or
>> isfinite on various systems. So, something may be still not working
>> well on some environments.
>> 
>> However, remember to remove old versions of platform.h if you have
>> any, for instance generated by autoconf build in
>> trunk/include/geos. It may cause problems.
> 
> No platform.h in source tree. The platform.h in build tree is created
> by cmake from platform.h.cmake (I double-checked by removing and
> running cmake again)

Sandro,

The CMakeLists.txt in root was performing incorrect checks.
It should be fine now, I hope.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org


More information about the geos-devel mailing list