parent
d7a23c874c
commit
07e2a3c3fb
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1,5 @@
|
||||
^CMake Error at alias-test-common\.cmake:[0-9]+ \(add_library\):
|
||||
The target name "test" is reserved when CTest testing is enabled\.
|
||||
Call Stack \(most recent call first\):
|
||||
alias-test-NEW\.cmake:[0-9]+ \(include\)
|
||||
CMakeLists\.txt:[0-9]+ \(include\)$
|
@ -0,0 +1,2 @@
|
||||
cmake_policy(SET CMP0037 NEW)
|
||||
include(alias-test-common.cmake)
|
@ -0,0 +1,10 @@
|
||||
^CMake Deprecation Warning at alias-test-OLD\.cmake:[0-9]+ \(cmake_policy\):
|
||||
The OLD behavior for policy CMP0037 will be removed from a future version
|
||||
of CMake\.
|
||||
|
||||
The cmake-policies\(7\) manual explains that the OLD behaviors of all
|
||||
policies are deprecated and that a policy should be set to OLD only under
|
||||
specific short-term circumstances\. Projects should be ported to the NEW
|
||||
behavior and not rely on setting a policy to OLD\.
|
||||
Call Stack \(most recent call first\):
|
||||
CMakeLists\.txt:[0-9]+ \(include\)$
|
@ -0,0 +1,2 @@
|
||||
cmake_policy(SET CMP0037 OLD)
|
||||
include(alias-test-common.cmake)
|
@ -0,0 +1,11 @@
|
||||
^CMake Warning \(dev\) at alias-test-common\.cmake:[0-9]+ \(add_library\):
|
||||
Policy CMP0037 is not set: Target names should not be reserved and should
|
||||
match a validity pattern\. Run "cmake --help-policy CMP0037" for policy
|
||||
details\. Use the cmake_policy command to set the policy and suppress this
|
||||
warning\.
|
||||
|
||||
The target name "test" is reserved when CTest testing is enabled\. It may
|
||||
result in undefined behavior\.
|
||||
Call Stack \(most recent call first\):
|
||||
alias-test-WARN\.cmake:[0-9]+ \(include\)
|
||||
CMakeLists\.txt:[0-9]+ \(include\)
|
@ -0,0 +1,2 @@
|
||||
# leave CMP0037 unset
|
||||
include(alias-test-common.cmake)
|
@ -0,0 +1,3 @@
|
||||
enable_testing()
|
||||
add_library(iface INTERFACE)
|
||||
add_library(test ALIAS iface)
|
@ -0,0 +1 @@
|
||||
execute_process(COMMAND "${TEST_STARTUPINFO_EXE}" COMMAND_ERROR_IS_FATAL ANY)
|
@ -0,0 +1,25 @@
|
||||
#ifndef _CRT_SECURE_NO_WARNINGS
|
||||
# define _CRT_SECURE_NO_WARNINGS
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1928
|
||||
# pragma warning(disable : 5105) /* macro expansion warning in windows.h */
|
||||
#endif
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
STARTUPINFOW si;
|
||||
memset(&si, 0, sizeof(si));
|
||||
GetStartupInfoW(&si);
|
||||
if (si.cbReserved2 != 0 || si.lpReserved2 != NULL) {
|
||||
fprintf(stderr, "si.cbReserved2: %u\n", si.cbReserved2);
|
||||
fprintf(stderr, "si.lpReserved2: %p\n", si.lpReserved2);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in new issue