LAPACK  3.5.0
LAPACK: Linear Algebra PACKage
 All Classes Files Functions Variables Typedefs Macros
lapack_build.cmake File Reference

Go to the source code of this file.

Functions

 set (VSLOCATIONS"[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\6.0\\Setup;VsCommonDir]/MSDev98/Bin""[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.0\\Setup\\VS;EnvironmentDirectory]""[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.1\\Setup\\VS;EnvironmentDirectory]""[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir]""[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup;Dbghelp_path]""[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup\\VS;EnvironmentDirectory]") set(GENERATORS"Visual Studio 6""Visual Studio 7""Visual Studio 7 .NET 2003""Visual Studio 8 2005""Visual Studio 8 2005""Visual Studio 9 2008") set(CTEST_CHECKOUT_COMMAND"\"$
 

Function Documentation

set ( VSLOCATIONS"/MSDev98/Bin"""""""""""  [HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\6.0\\Setup;VsCommonDir][HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.0\\Setup\\VS;EnvironmentDirectory][HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\7.1\\Setup\\VS;EnvironmentDirectory][HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0;InstallDir][HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\8.0\\Setup;Dbghelp_path][HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Setup\\VS;EnvironmentDirectory])

Definition at line 28 of file lapack_build.cmake.

45  {VSLOCATIONS})
46  get_filename_component(VSPATH ${p} PATH)
47  if(NOT "${VSPATH}" STREQUAL "/" AND EXISTS "${VSPATH}")
48  message(" found VS install = ${VSPATH}")
49  set(genIndex ${vstype})
50  endif()
51  math(EXPR vstype "${vstype} +1")
52  endforeach()
53  if(NOT DEFINED genIndex)
54  message(FATAL_ERROR "Could not find installed visual stuido")
55  endif()
56  list(GET GENERATORS ${genIndex} GENERATOR)
57  set(CTEST_CMAKE_GENERATOR "${GENERATOR}")
58  message("${CTEST_CMAKE_GENERATOR} - found")
59  set(compiler cl)
60 endif(WIN32)
61 
62 find_program(HOSTNAME NAMES hostname)
63 find_program(UNAME NAMES uname)
64 
65 # Get the build name and hostname
66 exec_program(${HOSTNAME} ARGS OUTPUT_VARIABLE hostname)
67 string(REGEX REPLACE "[/\\\\+<> #]" "-" hostname "${hostname}")
68 
69 message("HOSTNAME: ${hostname}")
70 # default to parallel 1
71 if(NOT DEFINED parallel)
72  set(parallel 1)
73 endif(NOT DEFINED parallel)
74 
75 # find CVS
76 find_program(SVN svn PATHS $ENV{HOME}/bin /vol/local/bin)
77 if(NOT SVN)
78  message(FATAL_ERROR "SVN not found")
79 endif()
80 
81 set(CTEST_UPDATE_COMMAND ${SVN})
82 macro(getuname name flag)
83  exec_program("${UNAME}" ARGS "${flag}" OUTPUT_VARIABLE "${name}")
84  string(REGEX REPLACE "[/\\\\+<> #]" "-" "${name}" "${${name}}")
85  string(REGEX REPLACE "^(......|.....|....|...|..|.).*" "\\1" "${name}" "${${name}}")
86 endmacro(getuname)
87 
88 getuname(osname -s)
89 getuname(osver -v)
90 getuname(osrel -r)
91 getuname(cpu -m)
92 if("${osname}" MATCHES Darwin)
93  find_program(SW_VER sw_vers)
94  execute_process(COMMAND "${SW_VER}" -productVersion OUTPUT_VARIABLE osver)
95  string(REPLACE "\n" "" osver "${osver}")
96  set(osname "MacOSX")
97  set(osrel "")
98  if("${cpu}" MATCHES "Power")
99  set(cpu "ppc")
100  endif("${cpu}" MATCHES "Power")
101 endif("${osname}" MATCHES Darwin)
102 
103 if(NOT compiler)
104  message(FATAL_ERROR "compiler must be set")
105 endif(NOT compiler)
106 
107 
108 set(BUILDNAME "${osname}${osver}${osrel}${cpu}-${compiler}")
109 message("BUILDNAME: ${BUILDNAME}")
110 
111 # this is the cvs module name that should be checked out
112 set (CTEST_MODULE_NAME lapack)
113 set (CTEST_DIR_NAME "${CTEST_MODULE_NAME}SVN")
114 
115 # Settings:
116 message("NOSPACES = ${NOSPACES}")
117 if(NOSPACES)
118  set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/Dashboards/MyTests-${BUILDNAME}")
119 else(NOSPACES)
120  set(CTEST_DASHBOARD_ROOT "$ENV{HOME}/Dashboards/My Tests-${BUILDNAME}")
121 endif(NOSPACES)
122 set(CTEST_SITE "${hostname}")
123 set(CTEST_BUILD_NAME "${BUILDNAME}")
124 set(CTEST_TEST_TIMEOUT "36000")
125 
126 # CVS command and the checkout command
127 if(NOT EXISTS "${CTEST_DASHBOARD_ROOT}/${CTEST_DIR_NAME}")
128  set(CTEST_CHECKOUT_COMMAND
129  "\"${CTEST_UPDATE_COMMAND}\" co https://icl.cs.utk.edu/svn/lapack-dev/lapack/trunk ${CTEST_DIR_NAME}")
debian since it interferes with the way the OPTS variable must be set
Definition: changelog:368
Tests gfortran Tests
Definition: control:2