mirror of https://github.com/QMCPACK/qmcpack.git
15 lines
336 B
CMake
15 lines
336 B
CMake
INCLUDE(${CMAKE_ROOT}/Modules/CheckCXXSourceCompiles.cmake)
|
|
|
|
SET(CMAKE_REQUIRED_LIBRARIES Math::scalar_vector_functions)
|
|
|
|
SET( SINCOS_TEST_SRC
|
|
"#include \"${SINCOS_INCLUDE}\"
|
|
int main(void) {
|
|
double input = 1.1;
|
|
double outsin, outcos;;
|
|
sincos(input,&outsin, &outcos);
|
|
}
|
|
")
|
|
|
|
CHECK_CXX_SOURCE_COMPILES("${SINCOS_TEST_SRC}" HAVE_SINCOS)
|