Source
467
467
468
468
if( NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel" )
469
469
if( _cxx_version STREQUAL "4.4" )
470
470
set( DEFAULT_CXX_FLAGS "${DEFAULT_CXX_FLAGS} -dynamic -mtune=nocona -ftree-vectorize -mfpmath=sse" )
471
471
else()
472
472
# set( DEFAULT_CXX_FLAGS "${DEFAULT_CXX_FLAGS} -dynamic -mtune=nocona -ftree-vectorize -mfpmath=sse -fasm-blocks" )
473
473
set( DEFAULT_CXX_FLAGS "${DEFAULT_CXX_FLAGS} -dynamic -mtune=nocona -ftree-vectorize -mfpmath=sse" )
474
474
endif()
475
475
endif()
476
476
477
-
find_program( DBUS_FLAVOR_dbuspp-xml2cpp_EXECUTABLE dbuspp-xml2cpp PATHS ${casa_packages}/bin /opt/local/bin /usr/local/bin )
477
+
find_program( DBUS_FLAVOR_dbuspp-xml2cpp_EXECUTABLE dbuspp-xml2cpp PATHS ${casa_packages}/bin /opt/local/bin /usr/local/bin)
478
478
if ( ${DBUS_FLAVOR_dbuspp-xml2cpp_EXECUTABLE} MATCHES "NOTFOUND$" )
479
+
message(STATUS "Defaulting to dbus-c++...")
479
480
set( dbusxx dbus-c++ )
480
481
else( )
482
+
message(STATUS "Found dbus-cpp...")
481
483
set( dbusxx dbus-cpp )
482
484
add_definitions( -DDBUS_CPP )
483
485
STRING( REGEX REPLACE "(^.*)/bin.*" "\\1" dbus-root-path ${DBUS_FLAVOR_dbuspp-xml2cpp_EXECUTABLE} )
484
486
if( EXISTS ${dbus-root-path}/lib/dbus-1.0 )
485
487
set( dbus-arch-path-guess ${dbus-root-path}/lib/dbus-1.0 )
486
488
endif( )
487
489
if( EXISTS ${dbus-root-path}/lib/libdbus-cpp.dylib )
488
490
if( APPLE )
489
491
set( dbus-cpp-library-name dbus-cpp )
490
492
else( )
528
530
set( casa_packages /opt/casa/01 )
529
531
set( dbusxx dbus-cpp )
530
532
add_definitions( -DDBUS_CPP )
531
533
set( qt4 system-qt )
532
534
# on RHEL7 we use the system libdbus*, here we assume
533
535
# that on RHEL6 the third party packages will continue
534
536
# to be installed in /usr/lib64/casa/01... (on RHEL6
535
537
# we continue to use libcasa-dbus in preference to
536
538
# the system libdbus...
537
539
set( dbus-cpp-library-name casa-dbus-cpp )
540
+
elseif( EXISTS /opt/casa/03 )
541
+
set( casa_packages /opt/casa/03 )
542
+
set( dbusxx dbus-cpp )
543
+
add_definitions( -DDBUS_CPP )
544
+
set( LIBSAKURA_ROOT_DIR /opt/casa/02 )
545
+
set( DEFAULT_CXX_FLAGS "${DEFAULT_CXX_FLAGS} -I/opt/casa/02/lib/dbus-1.0/include" )
546
+
if ( EXISTS /opt/casa/02/bin/qmake )
547
+
## RHEL6
548
+
set( qt4 casa-qt )
549
+
else( )
550
+
## RHEL7
551
+
set( qt4 system-qt )
552
+
# on RHEL7 we use the system libdbus*, here we assume
553
+
# that on RHEL6 the third party packages will continue
554
+
# to be installed in /usr/lib64/casa/02... (on RHEL6
555
+
# we continue to use libcasa-dbus in preference to
556
+
# the system libdbus...
557
+
set( dbus-cpp-library-name casa-dbus-cpp )
558
+
endif( )
538
559
else( )
539
560
set( dbusxx dbus-c++ )
540
561
set( casa_packages /usr/lib64/casapy )
541
562
set( qt4 system-qt )
542
563
endif( )
543
564
if( NOT arch )
544
565
set( arch linux_64b )
545
566
endif()
546
567
set( DEFAULT_CXX_FLAGS "${DEFAULT_CXX_FLAGS} -Wno-deprecated" )
547
568
else()
1099
1120
endif()
1100
1121
endif()
1101
1122
1102
1123
# ALMAWVR
1103
1124
if( USE_ALMAWVR )
1104
1125
message(STATUS "Directive USE_ALMAWVR is deprecated and no longer needed.")
1105
1126
message(STATUS "Will use CASA-internal version of BNMIN1 ...")
1106
1127
endif()
1107
1128
1108
1129
casa_find( GSLCBLAS
1109
-
LIBS gslcblas )
1130
+
LIBS gslcblas
1131
+
PREFIX_HINTS /opt/casa/03 /opt/casa/02 )
1110
1132
1111
1133
casa_find( GSL
1112
1134
LIBS gsl
1113
1135
DEPENDS GSLCBLAS
1114
-
)
1136
+
PREFIX_HINTS /opt/casa/03 /opt/casa/02 )
1115
1137
1116
1138
#
1117
1139
# gsl drags in dependencencies on atlas libraries, if they are not explicitly
1118
1140
# referenced, loading is left until runtime based upon transitive dependencies.
1119
1141
# This thwarts creation of a cleanly relocatable distribution.
1120
1142
#
1121
1143
if(CMAKE_SYSTEM_NAME STREQUAL Linux AND GSL_LIBRARIES)
1122
1144
if(EXISTS "/usr/lib64/atlas/libsatlas.so")
1123
1145
set( GSL_LIBRARIES "${GSL_LIBRARIES};/usr/lib64/atlas/libsatlas.so" )
1124
1146
endif( )