CMAKE 3.9.1 AIX CMakeCommonCompilerMacros error CMAKE_C_STANDARD_COMPUTED_DEFAULT should be set for XL
I was using cmake 3.7.2 and upgraded to 3.9.1 (latest available for aix online) on our IBM AIX 7.2 machine. Since the update I saw there were changes to the XL-C.cmake file where
__compiler_check_default_language_standard(C 10.1 90) was added but it always generates an error:
CMake Error at /opt/freeware/share/cmake/Modules/Compiler/CMakeCommonCompilerMacros.cmake:42 (message): CMAKE_C_STANDARD_COMPUTED_DEFAULT should be set for XL (/opt/IBM/xlC/13.1.3/bin/cc) version 13.1.3 Call Stack (most recent call first): /opt/freeware/share/cmake/Modules/Compiler/XL-C.cmake:41 (__compiler_check_default_language_standard) /opt/freeware/share/cmake/Modules/CMakeCInformation.cmake:25 (include) CMakeLists.txt:62 (PROJECT)
I ran a trace but I can see CMAKE_C_STANDARD_COMPUTED_DEFAULT is never set on AIX.