Commit 0b116eb4 authored by Andreas Schuh's avatar Andreas Schuh

Simplify check for strtoll and strtoq.

parent 5250372a
......@@ -140,10 +140,10 @@ if (MSVC)
set (HAVE_strtoll 0)
set (HAVE_strtoq 0)
else ()
foreach (fname IN ITEMS strtoll strtoq)
string (TOUPPER "${fname}" FNAME)
check_cxx_symbol_exists ("${fname}" stdlib.h HAVE_${FNAME})
endforeach ()
check_cxx_symbol_exists (strtoll stdlib.h HAVE_STRTOLL)
if (NOT HAVE_STRTOLL)
check_cxx_symbol_exists (strtoq stdlib.h HAVE_STRTOQ)
endif ()
endif ()
set (CMAKE_THREAD_PREFER_PTHREAD TRUE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment