Activate all BUILD_ options if none was specified
@@ -393,6 +393,13 @@ set(REVISION "-r${OpenBLAS_VERSION}")
set(MAJOR_VERSION ${OpenBLAS_MAJOR_VERSION})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CCOMMON_OPT}")
+
+if (NOT BUILD_SINGLE AND NOT BUILD_DOUBLE AND NOT BUILD_COMPLEX AND NOT BUILD_COMPLEX16)
+ set (BUILD_SINGLE ON)
+ set (BUILD_DOUBLE ON)
+ set (BUILD_COMPLEX ON)
+ set (BUILD_COMPLEX16 ON)
+endif()
if (BUILD_SINGLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DBUILD_SINGLE")
endif()
