Commits
359 359 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
360 360 | -DUSE_OPENMP=ON \ |
361 361 | -DUSE_THREADS=ON \ |
362 362 | -DBUILD_FFTPACK_DEPRECATED=ON \ |
363 363 | -DBUILD_TESTING=ON \ |
364 364 | -DBUILD_PYTHON3=OFF \ |
365 365 | -DBUILD_DYSCO=ON \ |
366 366 | -DPORTABLE=ON \ |
367 367 | -DUSE_PCH=OFF \ |
368 368 | -DUseCcache=1 \ |
369 + | -DCMAKE_CXX_FLAGS="-I /opt/casa/03/include -L /opt/casa/03/lib/ -lgsl -lgslcblas" \ |
369 370 | -DCMAKE_EXE_LINKER_FLAGS="-L /opt/casa/03/lib/" \ |
370 371 | -DCMAKE_MODULE_LINKER_FLAGS="-Wl,-rpath,-L /opt/casa/03/lib/" \ |
371 372 | -DCMAKE_SHARED_LINKER_FLAGS="-L /opt/casa/03/lib/" \ |
372 373 | $CASASRC/casatools/casacore |
373 374 | |
374 375 | # MAC ONLY! use the following cmake command (see additional note below) |
375 376 | # Note: we use '/opt/local/' as location where gcc is installed (MacPorts install prefix) |
376 377 | $ export FC=/opt/local/bin/gfortran-mp-12 # (gcc version can be 11, 12, 13 etc.) |
377 378 | $ cmake \ |
378 379 | # remember, on Ventura the extra flag is necessary |
417 418 | # LINUX ONLY! (not manylinux2014, not macOS) use this cmake command |
418 419 | $ PKG_CONFIG_PATH=$CASAINSTALL/lib/pkgconfig cmake \ |
419 420 | -DCMAKE_INSTALL_PREFIX=$CASAINSTALL \ |
420 421 | -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=$CASAINSTALL \ |
421 422 | $CASASRC/casatools/src/code |
422 423 | |
423 424 | $ manylinux2014 only! |
424 425 | $ export PKG_CONFIG_PATH=$CASAINSTALL/lib/pkgconfig:/opt/casa/03/lib/pkgconfig |
425 426 | $ cmake -DCMAKE_INSTALL_PREFIX=$CASAINSTALL \ |
426 427 | -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=$CASAINSTALL:/opt/casa/03/lib/pkgconfig \ |
428 + | -DCMAKE_CXX_FLAGS="-I /opt/casa/03/include -L /opt/casa/03/lib/ -lgsl -lgslcblas -Wl,-rpath,/opt/casa/03/lib" \ |
427 429 | $CASASRC/casatools/src/code |
428 430 | |
429 431 | # MAC ONLY! use this cmake command |
430 432 | # Note: we use '/opt/local/include' as location where to find the WCSLIB includes. |
431 433 | $ PKG_CONFIG_PATH=$CASAINSTALL/lib/pkgconfig cmake \ |
432 434 | -DCMAKE_CXX_FLAGS="-ffp-contract=off -isystem /opt/local/include" \ |
435 + | -DCMAKE_SHARED_LINKER_FLAGS="-L /opt/local/lib -lgsl -lgslcblas -L /opt/casa/03/lib -lgsl -lgslcblas" \ |
433 436 | -DCMAKE_INSTALL_PREFIX=$CASAINSTALL \ |
434 437 | -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=$CASAINSTALL \ |
435 438 | -DCMAKE_CXX_FLAGS="-isystem /opt/local/include" \ |
436 439 | $CASASRC/casatools/src/code |
437 440 | |
438 441 | $ make install -j `getconf _NPROCESSORS_ONLN` |
439 442 | ``` |
440 443 | |
441 444 | 2. This will install libraries under ` $CASAINSTALL/lib ` which are named like `libcasacpp_*` and header files under ` $CASAINSTALL/include ` |
442 445 | |