Skip to content
Snippets Groups Projects
Commit 64d539d9 authored by Richard Berger's avatar Richard Berger
Browse files

Disable sin/cos check in CMakeLists.txt since it breaks KOKKOS CUDA support

parent 7ab11488
No related branches found
No related tags found
No related merge requests found
...@@ -496,12 +496,13 @@ include(CheckLibraryExists) ...@@ -496,12 +496,13 @@ include(CheckLibraryExists)
if (CMAKE_VERSION VERSION_LESS "3.4") if (CMAKE_VERSION VERSION_LESS "3.4")
enable_language(C) # check_library_exists isn't supported without a c compiler before v3.4 enable_language(C) # check_library_exists isn't supported without a c compiler before v3.4
endif() endif()
foreach(FUNC sin cos) # RB: disabled this check because it breaks with KOKKOS CUDA enabled
check_library_exists(${MATH_LIBRARIES} ${FUNC} "" FOUND_${FUNC}_${MATH_LIBRARIES}) #foreach(FUNC sin cos)
if(NOT FOUND_${FUNC}_${MATH_LIBRARIES}) # check_library_exists(${MATH_LIBRARIES} ${FUNC} "" FOUND_${FUNC}_${MATH_LIBRARIES})
message(FATAL_ERROR "Could not find needed math function - ${FUNC}") # if(NOT FOUND_${FUNC}_${MATH_LIBRARIES})
endif(NOT FOUND_${FUNC}_${MATH_LIBRARIES}) # message(FATAL_ERROR "Could not find needed math function - ${FUNC}")
endforeach(FUNC) # endif(NOT FOUND_${FUNC}_${MATH_LIBRARIES})
#endforeach(FUNC)
list(APPEND LAMMPS_LINK_LIBS ${MATH_LIBRARIES}) list(APPEND LAMMPS_LINK_LIBS ${MATH_LIBRARIES})
###################################### ######################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment