aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorTsuda Kageyu <tsuda.kageyu@gmail.com>2015-08-01 01:59:36 +0900
committerTsuda Kageyu <tsuda.kageyu@gmail.com>2015-08-01 01:59:36 +0900
commitf25e30d33f4080cf78a393a38ca0d6fca8bf3390 (patch)
tree13fa8d0de81e3fe7d311d46ba9bdfc9a8a04779e /ConfigureChecks.cmake
parent4dcccfbd6a7aa286248c2d8a397175c41f524e69 (diff)
Revert "Reorder CMake checks for sprintf() variants."
This reverts commit c69364d83115950b24e6baa6b9841a244d149d91.
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 374fa7ab..2a45226e 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -211,20 +211,20 @@ check_cxx_source_compiles("
#include <cstdio>
int main() {
char buf[20];
- sprintf_s(buf, \"%d\", 1);
+ snprintf(buf, 20, \"%d\", 1);
return 0;
}
-" HAVE_SPRINTF_S)
+" HAVE_SNPRINTF)
-if(NOT HAVE_SPRINTF_S)
+if(NOT HAVE_SNPRINTF)
check_cxx_source_compiles("
#include <cstdio>
int main() {
char buf[20];
- snprintf(buf, 20, \"%d\", 1);
+ sprintf_s(buf, \"%d\", 1);
return 0;
}
- " HAVE_SNPRINTF)
+ " HAVE_SPRINTF_S)
endif()
# Check for libz using the cmake supplied FindZLIB.cmake