if(LAPACK_FOUND) if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") #windows needs to find of openblas include_directories($ENV{PATH}) else() #ftravis-ci needs find of ATLAS include_directories(/usr/include/atlas) endif() add_executable(example example.c) target_link_libraries(example ${MATH_LIBS}) else() message(FATAL_ERROR "LAPACK library not found for the test cc_lapacke!") endif()