Skip to content

Are 32BIT and 64BIT CMake options still supported? #1783

@mathomp4

Description

@mathomp4

Per the docs and CMake, I see there are still:

-D32BIT       "Build 32-bit (r4) FMS library"        DEFAULT: OFF
-D64BIT       "Build 64-bit (r8) FMS library"        DEFAULT: OFF

as options. However, I'm not sure you can build FMS (2025.04) any more with both on. I tried recently building FMS with those both on (since that is the way we've built it with GEOS since time immemorial) but when you try, you get a hojillion CMake errors like:

CMake Error at CMakeLists.txt:784 (target_link_libraries):
  Target "check_time_sum" links to:

    FMS::fms

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

I think that's because when you build with -D32BIT=ON -D64BIT=ON the targets created are FMS::FMS_r4 and FMS::fms_r8 but the CMake is assuming the FMS target will be FMS::fms.

For now, I'm going to try and see if I can get the multi-precision variant (aka FMS::fms) working with GEOS because, well, that's what we actually want to use, but I wanted to ask if this was expected.

Perhaps the CMake being triggered should be avoided if not building as multi-precision?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions