mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 15:48:52 +00:00
3900fcf4a8
Teach add_custom_target to check the policy too. Extend the policy to disallow reserved target names that we use for builtin targets like "all". Extend the RunCMake.CMP0037 test to cover these cases.
38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
CMake Warning \(dev\) at CMP0037-WARN-space.cmake:2 \(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 "lib with spaces" is reserved or 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-space.cmake:3 \(add_executable\):
|
|
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 "exe with spaces" is reserved or 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-space.cmake:4 \(add_custom_target\):
|
|
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 "custom with spaces" is reserved or 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\)
|