+ * Clean up CMake files (may need a full rewrite).
+ Non exhaustive list of subgoals:
+ - Use genuine cmake mechanisms and variables when available,
+ instead of reinventing the wheel.
+ - Correctly determine system and architecture (e.g. x32).
+ - Correctly determine compiler type and version (e.g. clang).
+ - Correctly set compiler flags according to compiler type and version.
+ - Correctly set compiler flags for C++, Java, and Fortran compilers too.
+ - Use git to generate the dist archive. Either use git-archive to
+ generate the tarball, or keep using cmake -E tar, but use git-ls-files
+ to get the list of files to pack.
+ - For Java, add an option to enable/disable the inclusion of the native
+ libraries in the jar file, and avoid to duplicate these files.