Kitware/VTK
ThirdParty/netcdf/vtknetcdf/CMakeLists.txt
:202
check_symbol_exists("snprintf" "stdio.h" HAVE_SNPRINTF)
check_symbol_exists("snprintf" "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists (snprintf cstdio HAVE_SNPRINTF)
check_function_exists(snprintf HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_function_exists(sprintf HAVE_SNPRINTF)
check_symbol_exists (snprintf "stdio.h" HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS (snprintf HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF)
endif(NOT HAVE_SNPRINTF)
check_symbol_exists (snprintf stdio.h HAVE_SNPRINTF)
set_property (SOURCE src/windows/port.cc APPEND PROPERTY COMPILE_DEFINITIONS
HAVE_SNPRINTF)
endif (WIN32 AND HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS (snprintf HAVE_SNPRINTF)
check_c_source_compiles("
#include <stdio.h>
int main(void) {
char buf[10];
snprintf(buf, 10, \"Test %d\", 1);
return 0;
}" HAVE_SNPRINTF)
check_function_exists(snprintf HAVE_SNPRINTF)
check_symbol_exists (snprintf "stdio.h" HAVE_SNPRINTF)
check_c_source_compiles("
#include <stdio.h>
int main(void) {
char buf[10];
snprintf(buf, 10, \"Test %d\", 1);
return 0;
}"
HAVE_SNPRINTF)
check_function_exists("snprintf" HAVE_SNPRINTF)
check_symbol_exists("snprintf" "stdio.h" HAVE_SNPRINTF)
check_function_exists("snprintf" HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS (snprintf HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_function_exists(sprintf HAVE_SNPRINTF)
target_compile_definitions(${PROJECT_NAME} PUBLIC "HAVE_SNPRINTF")
check_symbol_exists(snprintf "${CURL_INCLUDES}" HAVE_SNPRINTF)
set_property(DIRECTORY APPEND
PROPERTY COMPILE_DEFINITIONS
HAVE_SNPRINTF
)
check_symbol_exists (snprintf stdio.h HAVE_SNPRINTF)
set_property (SOURCE src/windows/port.cc APPEND PROPERTY COMPILE_DEFINITIONS
HAVE_SNPRINTF)
endif (WIN32 AND HAVE_SNPRINTF)
add_definitions(-DHAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf "${CURL_INCLUDES}" HAVE_SNPRINTF)
check_c_source_compiles("
#include <stdio.h>
int main(int argc, char *argv[])
{
char buf[16];
(void)snprintf(buf, sizeof(buf), \"foo\");
return (0);
}
" HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
CHECK_SYMBOL_EXISTS(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
target_compile_options(pedalboard_native PRIVATE
$<$<COMPILE_LANGUAGE:C>:
-DHAVE_UINTPTR_T
-DPACKAGE="FFTW"
-DVERSION="0"
-DPACKAGE_VERSION="00000"
-DFFTW_CC="clang"
"-includestring.h"
"-includestdint.h"
"-include${CMAKE_CURRENT_SOURCE_DIR}/vendors/fftw3/dft/codelet-dft.h"
"-include${CMAKE_CURRENT_SOURCE_DIR}/vendors/fftw3/rdft/codelet-rdft.h"
"-includesys/time.h"
-DHAVE_INTTYPES_H
-DHAVE_STDINT_H
-DHAVE_STDLIB_H
-DHAVE_STRING_H
-DHAVE_TIME_H
-DHAVE_SYS_TIME_H=1
-DHAVE_UNISTD_H
-DHAVE_DECL_DRAND48
-DHAVE_DECL_SRAND48
-DHAVE_DECL_COSL
-DHAVE_DECL_SINL
-DHAVE_DECL_POSIX_MEMALIGN
-DHAVE_DRAND48
-DHAVE_SRAND48
-DHAVE_POSIX_MEMALIGN
-DHAVE_ISNAN
-DHAVE_SNPRINTF
-DHAVE_STRCHR
-DHAVE_SYSCTL
-DHAVE_GETTIMEOFDAY>
)
check_symbol_exists (snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
CHECK_CXX_SOURCE_COMPILES("#include <stdio.h>
int main() {snprintf(0,0,0); return 1;}" HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
target_compile_definitions(
tinydtls
PRIVATE HAVE_ARPA_INET_H
HAVE_ASSERT_H
HAVE_FCNTL_H
HAVE_GETRANDOM
HAVE_INTTYPES_H
HAVE_MEMSET
HAVE_NETDB_H
HAVE_NETINET_IN_H
HAVE_RANDOM
HAVE_SELECT
HAVE_SOCKET
HAVE_STDDEF_H
HAVE_STDINT_H
HAVE_STDLIB_H
HAVE_STRDUP
HAVE_STRERROR
HAVE_STRINGS_H
HAVE_STRING_H
HAVE_STRNLEN
HAVE_SYS_SOCKET_H
HAVE_SYS_STAT_H
HAVE_SYS_TIME_H
HAVE_SYS_TYPES_H
HAVE_TIME_H
HAVE_UNISTD_H
HAVE_VPRINTF
HAVE_SNPRINTF)
add_definitions(-DHAVE_SNPRINTF=1)
endif(NOT HAVE_SNPRINTF)
endif(NOT HAVE_SNPRINTF)
check_c_source_compiles("
#include <stdio.h>
int main(void) {
char buf[10];
snprintf(buf, 10, \"Test %d\", 1);
return 0;
}"
HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS("snprintf" HAVE_SNPRINTF)
check_symbol_exists("snprintf" "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_function_exists("snprintf" HAVE_SNPRINTF)
check_symbol_exists("snprintf" "stdio.h" HAVE_SNPRINTF)
CHECK_CXX_SYMBOL_EXISTS( snprintf "cstdio" HAVE_SNPRINTF )
check_symbol_exists(snprintf "${CURL_INCLUDES}" HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
set_target_properties(${_pythoninterface_test_target_name} PROPERTIES COMPILE_FLAGS "/DHAVE_SNPRINTF")
check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF)
check_function_exists("snprintf" HAVE_SNPRINTF)
check_symbol_exists("snprintf" "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
check_symbol_exists(snprintf "stdio.h" HAVE_SNPRINTF)
CHECK_FUNCTION_EXISTS(snprintf HAVE_SNPRINTF)