autocmake/test/fc_lapack/src/CMakeLists.txt
Radovan Bast 792b66f037 cleanup
2015-08-04 11:44:39 +02:00

13 lines
409 B
CMake

if(LAPACK_FOUND)
if(CMAKE_Fortran_COMPILER_ID MATCHES PGI)
# we remove -rdynamic flag added by CMake
# PGI Fortran does not recognize this flag
SET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS)
endif()
add_executable(example example.F90)
target_link_libraries(example ${MATH_LIBS})
else()
message(FATAL_ERROR "LAPACK library not found for the test fc_lapack!")
endif()