Building cortran with shared libs off fails with coretranTest. Build succeds with coretran but fails with the test as below. Build with sharedlibs on succeeds. Not sure if this is a cmake issue or not. Any help would be appreciated.
[ 91%] Building Fortran object CMakeFiles/coretran.dir/time/ProgressBar_Class.f90.o
[ 92%] Linking Fortran static library /home/rmcd/git/coretran/lib/libcoretran.a
[ 92%] Built target coretran
[ 94%] Linking Fortran executable /home/rmcd/git/coretran/bin/coretranTest
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -ldl
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lpthread
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[2]: *** [/home/rmcd/git/coretran/bin/coretranTest] Error 1
make[1]: *** [tests/CMakeFiles/coretranTest.dir/all] Error 2
make: *** [all] Error 2
Building cortran with shared libs off fails with coretranTest. Build succeds with coretran but fails with the test as below. Build with sharedlibs on succeeds. Not sure if this is a cmake issue or not. Any help would be appreciated.
[ 91%] Building Fortran object CMakeFiles/coretran.dir/time/ProgressBar_Class.f90.o
[ 92%] Linking Fortran static library /home/rmcd/git/coretran/lib/libcoretran.a
[ 92%] Built target coretran
[ 94%] Linking Fortran executable /home/rmcd/git/coretran/bin/coretranTest
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -ldl
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lm
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lpthread
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make[2]: *** [/home/rmcd/git/coretran/bin/coretranTest] Error 1
make[1]: *** [tests/CMakeFiles/coretranTest.dir/all] Error 2
make: *** [all] Error 2