{"action":"opened","issue":{"url":"https://api.github.com/repos/redguardtoo/cpputils-cmake/issues/66","labels_url":"https://api.github.com/repos/redguardtoo/cpputils-cmake/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/redguardtoo/cpputils-cmake/issues/66/comments","events_url":"https://api.github.com/repos/redguardtoo/cpputils-cmake/issues/66/events","html_url":"https://github.com/redguardtoo/cpputils-cmake/issues/66","id":128398513,"number":66,"title":"cmake 3.4 flag.make","user":{"login":"laiall","id":5328804,"avatar_url":"https://avatars.githubusercontent.com/u/5328804?v=3","gravatar_id":"","url":"https://api.github.com/users/laiall","html_url":"https://github.com/laiall","followers_url":"https://api.github.com/users/laiall/followers","following_url":"https://api.github.com/users/laiall/following{/other_user}","gists_url":"https://api.github.com/users/laiall/gists{/gist_id}","starred_url":"https://api.github.com/users/laiall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laiall/subscriptions","organizations_url":"https://api.github.com/users/laiall/orgs","repos_url":"https://api.github.com/users/laiall/repos","events_url":"https://api.github.com/users/laiall/events{/privacy}","received_events_url":"https://api.github.com/users/laiall/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-24T13:58:32Z","updated_at":"2016-01-24T13:58:32Z","closed_at":null,"body":"在cmake 3.4中，flag.make 中除了 CXX_FLAGS 和 CXX_DEFINES， 还会有一个 CXX_INCLUDES  需要包含到 include path 中\r\n\r\n举例来说 cmake 2.8 产生的 flag.make 如下\r\n﻿﻿﻿# CMAKE generated file: DO NOT EDIT!\r\n# Generated by \"Unix Makefiles\" Generator, CMake Version 2.8\r\n\r\n# compile CXX with /usr/bin/c++\r\nCXX_FLAGS = -g -I/home/ruizhi/workspace/Odinson/include   \r\n\r\nCXX_DEFINES = \r\n\r\ncmake 3.4 的 flag.make 为\r\n\r\n# CMAKE generated file: DO NOT EDIT!\r\n# Generated by \"Unix Makefiles\" Generator, CMake Version 3.4\r\n\r\n# compile CXX with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++\r\nCXX_FLAGS =  \r\n\r\nCXX_DEFINES = \r\n\r\nCXX_INCLUDES = -I/Users/ruizhi/workspace/Odinson/include "}}