[cspice] Download 64 bits packages if targeting 64 bits arch + NON_UNIX_STDIO definition for UNIX #9788
Labels
category:port-feature
The issue is with a library, which is requesting new capabilities that didn’t exist
Is your feature request related to a problem? Please describe.
It has to be notice that underlying type of two cspice types (SpiceInt and ConstSpiceInt) are different between 32 bits and 64 bits source code (long vs int, which shouldn't have any consequences for most compilers I guess, but why playing with the devil?).
And for non Windows, there are underlying type of similar fortran types which are different.
It's also strange that compile option -m64 is hardcoded in CMakeLists.txt for UNIX.
Just an example of code diff (here between VisualC-32bit and VisualC-64bit packages):
Proposed solution
target_compile_definitions(cspice PUBLIC "NON_ANSI_STDIO")
bytarget_compile_definitions(cspice PUBLIC "NON_UNIX_STDIO")
The text was updated successfully, but these errors were encountered: