Use mkdtemp where available, avoiding linker warnings about dangerous tempnam

This commit is contained in:
James Turner
2011-10-15 02:06:35 +01:00
parent bc9b3f6ff1
commit 04a47dfb8d
3 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ check_function_exists(gettimeofday HAVE_GETTIMEOFDAY)
check_function_exists(ftime HAVE_FTIME)
check_function_exists(timegm HAVE_TIMEGM)
check_function_exists(rint HAVE_RINT)
check_function_exists(mkdtemp HAVE_MKDTEMP)
if(HAVE_UNISTD_H)
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_INCLUDE_PATH})