File: configure_uw

package info (click to toggle)
condor 8.6.8~dfsg.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 79,476 kB
  • sloc: cpp: 649,368; perl: 108,260; python: 22,654; ansic: 20,588; sh: 19,729; fortran: 3,340; yacc: 1,844; makefile: 1,213; xml: 1,003; sql: 767; java: 703; ruby: 512; awk: 505; lex: 248; f90: 64; csh: 24
file content (30 lines) | stat: -rwxr-xr-x 1,188 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

echo "-------------------------------------------------------------------"
echo "* NOTE: Attempting to configure a UW-esk build"
echo "* which will build and link specfic versions of externals"
echo "* that may not be the version your system distros with!"
echo "* so if you are not UW, namely a package maintainer for distro xyz"
echo "* you will likely want to run \"cmake .\""
echo "*"
echo "* add -D_DEBUG:BOOL=FALSE to get non-optimized code for debugging"
echo "* Another option would be to run ccmake or cmake-gui"
echo "-------------------------------------------------------------------"
PWD=`pwd`
if [ `uname` = "Darwin" ] ; then
  # In older verisons, cmake will use gcc and c++ for the C and C++ compilers.
  # On Mac OS X, these invoke different compilers (llvm gnu and clang,
  # respectively).
  # For newer versions of OS X (10.9.x and later), use Clang.
  # For older versions, use GCC.
  if sw_vers | grep -q 'ProductVersion: 10.[91]' ; then
    CC=cc
    CXX=c++
  else
    CC=gcc
    CXX=g++
  fi
  export CC
  export CXX
fi
cmake -DUW_BUILD:BOOL=TRUE -D_VERBOSE:BOOL=TRUE -DBUILDID:STRING=UW_development -DCMAKE_INSTALL_PREFIX:PATH=${PWD}/release_dir "$@"