{"action":"created","issue":{"url":"https://api.github.com/repos/schuhschuh/cmake-basis/issues/500","labels_url":"https://api.github.com/repos/schuhschuh/cmake-basis/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/schuhschuh/cmake-basis/issues/500/comments","events_url":"https://api.github.com/repos/schuhschuh/cmake-basis/issues/500/events","html_url":"https://github.com/schuhschuh/cmake-basis/issues/500","id":121124030,"number":500,"title":"deal with new CMP0064","user":{"login":"ahundt","id":55744,"avatar_url":"https://avatars.githubusercontent.com/u/55744?v=3","gravatar_id":"","url":"https://api.github.com/users/ahundt","html_url":"https://github.com/ahundt","followers_url":"https://api.github.com/users/ahundt/followers","following_url":"https://api.github.com/users/ahundt/following{/other_user}","gists_url":"https://api.github.com/users/ahundt/gists{/gist_id}","starred_url":"https://api.github.com/users/ahundt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahundt/subscriptions","organizations_url":"https://api.github.com/users/ahundt/orgs","repos_url":"https://api.github.com/users/ahundt/repos","events_url":"https://api.github.com/users/ahundt/events{/privacy}","received_events_url":"https://api.github.com/users/ahundt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-08T23:22:38Z","updated_at":"2015-12-09T00:30:48Z","closed_at":null,"body":"I think basis will conflict with the new cmake policy for TEST in 3.4.1:\r\n\r\n```\r\n± cmake  --help-policy CMP0064\r\nCMP0064\r\n-------\r\n\r\nRecognize ``TEST`` as a operator for the ``if()`` command.\r\n\r\nThe ``TEST`` operator was added to the ``if()`` command to determine if a\r\ngiven test name was created by the ``add_test()`` command.\r\n\r\nThe ``OLD`` behavior for this policy is to ignore the ``TEST`` operator.\r\nThe ``NEW`` behavior is to interpret the ``TEST`` operator.\r\n\r\nThis policy was introduced in CMake version 3.4.  CMake version\r\n3.4.1 warns when the policy is not set and uses ``OLD`` behavior.  Use\r\nthe ``cmake_policy()`` command to set it to ``OLD`` or ``NEW``\r\nexplicitly.\r\n\r\n.. note::\r\n  The ``OLD`` behavior of a policy is\r\n  ``deprecated by definition``\r\n  and may be removed in a future version of CMake.\r\n```\r\n\r\nFor example:\r\n\r\n```\r\n-- Adding executable SlidingWindowBA_test...\r\nCMake Warning (dev) at /usr/local/share/cmake-modules/TargetTools.cmake:1724 (if):\r\n  Policy CMP0064 is not set: Support new TEST if() operator.  Run \"cmake\r\n  --help-policy CMP0064\" for policy details.  Use the cmake_policy command to\r\n  set the policy and suppress this warning.\r\n\r\n  TEST will be interpreted as an operator when the policy is set to NEW.\r\n  Since the policy is not set the OLD behavior will be used.\r\nCall Stack (most recent call first):\r\n  /usr/local/share/cmake-modules/TargetTools.cmake:754 (basis_add_executable_target)\r\n  thirdparty/camodocal/cmake/BinaryUtilities.cmake:69 (basis_add_executable)\r\n  thirdparty/camodocal/cmake/BinaryUtilities.cmake:93 (_camodocal_test_intern)\r\n  thirdparty/camodocal/src/visual_odometry/CMakeLists.txt:32 (camodocal_test)\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n\r\nCMake Warning (dev) at /usr/local/share/cmake-modules/ExportTools.cmake:47 (if):\r\n  Policy CMP0064 is not set: Support new TEST if() operator.  Run \"cmake\r\n  --help-policy CMP0064\" for policy details.  Use the cmake_policy command to\r\n  set the policy and suppress this warning.\r\n\r\n  TEST will be interpreted as an operator when the policy is set to NEW.\r\n  Since the policy is not set the OLD behavior will be used.\r\nCall Stack (most recent call first):\r\n  /usr/local/share/cmake-modules/TargetTools.cmake:1746 (basis_add_export_target)\r\n  /usr/local/share/cmake-modules/TargetTools.cmake:754 (basis_add_executable_target)\r\n  thirdparty/camodocal/cmake/BinaryUtilities.cmake:69 (basis_add_executable)\r\n  thirdparty/camodocal/cmake/BinaryUtilities.cmake:93 (_camodocal_test_intern)\r\n  thirdparty/camodocal/src/visual_odometry/CMakeLists.txt:32 (camodocal_test)\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n\r\nCMake Warning (dev) at /usr/local/share/cmake-modules/TargetTools.cmake:1750 (if):\r\n  Policy CMP0064 is not set: Support new TEST if() operator.  Run \"cmake\r\n  --help-policy CMP0064\" for policy details.  Use the cmake_policy command to\r\n  set the policy and suppress this warning.\r\n\r\n  TEST will be interpreted as an operator when the policy is set to NEW.\r\n  Since the policy is not set the OLD behavior will be used.\r\nCall Stack (most recent call first):\r\n  /usr/local/share/cmake-modules/TargetTools.cmake:754 (basis_add_executable_target)\r\n  thirdparty/camodocal/cmake/BinaryUtilities.cmake:69 (basis_add_executable)\r\n  thirdparty/camodocal/cmake/BinaryUtilities.cmake:93 (_camodocal_test_intern)\r\n  thirdparty/camodocal/src/visual_odometry/CMakeLists.txt:32 (camodocal_test)\r\nThis warning is for project developers.  Use -Wno-dev to suppress it.\r\n```"},"comment":{"url":"https://api.github.com/repos/schuhschuh/cmake-basis/issues/comments/163066734","html_url":"https://github.com/schuhschuh/cmake-basis/issues/500#issuecomment-163066734","issue_url":"https://api.github.com/repos/schuhschuh/cmake-basis/issues/500","id":163066734,"user":{"login":"schuhschuh","id":975451,"avatar_url":"https://avatars.githubusercontent.com/u/975451?v=3","gravatar_id":"","url":"https://api.github.com/users/schuhschuh","html_url":"https://github.com/schuhschuh","followers_url":"https://api.github.com/users/schuhschuh/followers","following_url":"https://api.github.com/users/schuhschuh/following{/other_user}","gists_url":"https://api.github.com/users/schuhschuh/gists{/gist_id}","starred_url":"https://api.github.com/users/schuhschuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schuhschuh/subscriptions","organizations_url":"https://api.github.com/users/schuhschuh/orgs","repos_url":"https://api.github.com/users/schuhschuh/repos","events_url":"https://api.github.com/users/schuhschuh/events{/privacy}","received_events_url":"https://api.github.com/users/schuhschuh/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T00:30:48Z","updated_at":"2015-12-09T00:30:48Z","body":"See #490 (commit 3c5c5b5c126033550409df38bd8b7d3ff910ff36)."}}