1CMP0004 2------- 3 4Libraries linked may not have leading or trailing whitespace. 5 6CMake versions 2.4 and below silently removed leading and trailing 7whitespace from libraries linked with code like 8 9:: 10 11 target_link_libraries(myexe " A ") 12 13This could lead to subtle errors in user projects. 14 15The ``OLD`` behavior for this policy is to silently remove leading and 16trailing whitespace. The ``NEW`` behavior for this policy is to diagnose 17the existence of such whitespace as an error. The setting for this 18policy used when checking the library names is that in effect when the 19target is created by an :command:`add_executable` or :command:`add_library` 20command. 21 22This policy was introduced in CMake version 2.6.0. CMake version 23|release| warns when the policy is not set and uses ``OLD`` behavior. Use 24the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly. 25 26.. include:: DEPRECATED.txt 27