11cmake_minimum_required (VERSION 2.8.10 )
22
3+ project (LAPACK Fortran C )
4+
5+ set (LAPACK_MAJOR_VERSION 3)
6+ set (LAPACK_MINOR_VERSION 7)
7+ set (LAPACK_PATCH_VERSION 1)
8+ set (
9+ LAPACK_VERSION
10+ ${LAPACK_MAJOR_VERSION} .${LAPACK_MINOR_VERSION} .${LAPACK_PATCH_VERSION}
11+ )
12+
13+ # Add the CMake directory for custon CMake modules
14+ set (CMAKE_MODULE_PATH "${LAPACK_SOURCE_DIR} /CMAKE" ${CMAKE_MODULE_PATH} )
15+
316# Set a default build type if none was specified
417if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
518 message (STATUS "Setting build type to 'Release' as none was specified." )
@@ -17,16 +30,6 @@ endif()
1730# By default static library
1831option (BUILD_SHARED_LIBS "Build shared libraries" OFF )
1932
20- project (LAPACK Fortran C )
21-
22- set (LAPACK_MAJOR_VERSION 3)
23- set (LAPACK_MINOR_VERSION 7)
24- set (LAPACK_PATCH_VERSION 1)
25- set (
26- LAPACK_VERSION
27- ${LAPACK_MAJOR_VERSION} .${LAPACK_MINOR_VERSION} .${LAPACK_PATCH_VERSION}
28- )
29-
3033include (GNUInstallDirs )
3134
3235# Updated OSX RPATH settings
@@ -51,8 +54,6 @@ configure_file(
5154 @ONLY
5255)
5356
54- # Add the CMake directory for custon CMake modules
55- set (CMAKE_MODULE_PATH "${LAPACK_SOURCE_DIR} /CMAKE" ${CMAKE_MODULE_PATH} )
5657include (PreventInSourceBuilds )
5758include (PreventInBuildInstalls )
5859
0 commit comments