8c6c1f16c9
Split the test cases covering spaces and colons into separate units. Run the space cases everywhere. Disable the colon cases where they are known to fail. This approach increases platform coverage for the test and makes the known-failure logic as local as possible. No Makefile generator on Windows can generate targets with ':' in their name because the CMakeFiles/<target>.dir directory cannot be created. Skip this part of the test on all Windows Make tools.
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
CMake Warning \(dev\) at CMP0037-WARN-colon.cmake:2 \(add_library\):
|
|
Policy CMP0037 is not set: Target names 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 "lib:colon" is not valid for certain CMake features, such
|
|
as generator expressions, and may result in undefined behavior.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|
|
+
|
|
CMake Warning \(dev\) at CMP0037-WARN-colon.cmake:3 \(add_executable\):
|
|
Policy CMP0037 is not set: Target names 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 "exe:colon" is not valid for certain CMake features, such
|
|
as generator expressions, and may result in undefined behavior.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|