Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FindGxx.mk
Go to the documentation of this file.
1 ## @file FindGxx.mk
2 ## @brief find g++, determine CXX
3 ## @author Yibo Lin
4 ## @date Jan 2017
5 ##
6 ## @param CXX set CXX as C++ compiler
7 
8 ## @cond
9 
10 ifneq ($(shell which g++),)
11  CXX = g++
12 else
13 ifneq ($(shell which g++48),)
14  CXX = g++48
15 else
16 ifneq ($(shell which g++-4.8),)
17  CXX = g++-4.8
18 else
19 ifneq ($(shell which g++47),)
20  CXX = g++47
21 else
22 ifneq ($(shell which g++-4.7),)
23  CXX = g++-4.7
24 else
25 ifneq ($(shell which g++44),)
26  CXX = g++44
27 else
28 ifneq ($(shell which g++-4.4),)
29  CXX = g++-4.4
30 else
31  CXX = g++
32 endif
33 endif
34 endif
35 endif
36 endif
37 endif
38 endif
39 
40 ## @endcond