Fix bitness handling in fortranFactory

This commit is contained in:
Ian Bell
2015-11-14 16:53:00 -07:00
parent 0c06716f8b
commit 52cb27b51e

View File

@@ -543,6 +543,11 @@ def fortranFactory(platform=1,bitness=1):
fortran_folder = "build/wrappers/Fortran/detailed_example" #
#
cmake_args = ["-DCOOLPROP_STATIC_LIBRARY=ON","-DCOOLPROP_EXTERNC_LIBRARY=ON", ]
if bitness == bitnessID["32bit"]:
cmake_args.append('-DFORCE_BITNESS_32')
elif bitness == bitnessID["64bit"]
cmake_args.append('-DFORCE_BITNESS_64')
if platform==platformID["windows"]:
cmake_args += ["-G", "\"MinGW Makefiles\""]