{"id":108919,"date":"2020-05-31T19:31:52","date_gmt":"2020-05-31T11:31:52","guid":{"rendered":"http:\/\/4563.org\/?p=108919"},"modified":"2020-05-31T19:31:52","modified_gmt":"2020-05-31T11:31:52","slug":"%e8%af%b7%e9%97%ae%e9%82%a3%e7%a7%8d%e5%a5%bd%e5%87%a0%e5%8d%83%e8%a1%8c%e7%9a%84-cmakelists-%e6%98%af%e6%89%8b%e5%86%99%e7%9a%84%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=108919","title":{"rendered":"\u8bf7\u95ee\u90a3\u79cd\u597d\u51e0\u5343\u884c\u7684 CMakeLists \u662f\u624b\u5199\u7684\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u95ee\u90a3\u79cd\u597d\u51e0\u5343\u884c\u7684 CMakeLists \u662f\u624b\u5199\u7684\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zycpp <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u8fd8\u662f\u6709\u4ec0\u4e48\u81ea\u52a8\u751f\u6210\u8f6f\u4ef6\uff1f<br \/>\u540e\u7eed\u7ef4\u62a4\u66f4\u65b0\u4e5f\u662f\u4eba\u5de5\u7684\u5417\uff1f<br \/>grpc \u7684 CMakeLists \u90fd\u4e00\u4e07\u591a\u884c\u4e86\uff0c\u7ed9\u8dea\u4e86\u3002      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1812085\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dilu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u5f88\u597d\u5947\uff0c\u770b\u4e00\u4e9b C \u9879\u76ee\u7684\u65f6\u5019\uff0c\u90a3 Makefile \u591a\u7684\u4e5f\u6709\u4e09\u56db\u767e\u884c\u4e86\uff0c\u5168\u9760\u4eba\u5de5\uff1f\u6c42 C\/C++\u5927\u4f6c\u89e3\u60d1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1812086\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : reus <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4e00\u4e0b\u5386\u53f2\u4e0d\u5c31\u77e5\u9053\u4e86\uff1a https:\/\/github.com\/grpc\/grpc\/commits\/master\/CMakeLists.txt<\/p>\n<p>\u4ee3\u7801\u51e0\u5343\u51e0\u4e07\u884c\u6709\u4ec0\u4e48\u5947\u602a\u7684\uff1f\u8fd8\u662f\u4f60\u8ba4\u4e3a\u6784\u5efa\u6587\u4ef6\u4e0d\u914d\u79f0\u4f5c\u4ee3\u7801\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1812087\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zengguibo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u771f\u662f\u624b\u5199\u7684\uff0c\u53c8\u4e0d\u662f\u4e00\u5929\u5185\u5199\u7684\uff0c\u90fd\u662f\u597d\u51e0\u5e74\u7684\u4ea7\u7269\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1812088\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : icylogic <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &#8211; \u4e00\u4e2a\u9879\u76ee\u603b\u5171\u6210\u5343\u4e0a\u4e07\u884c\u4e0d\u5947\u602a\uff0ccmake \u4f5c\u4e3a\u4e00\u79cd\u6781\u5176\u96be\u7528\u53c8\u6ca1\u5565\u5e93\u7684\u811a\u672c\u8bed\u8a00\uff0c\u5199\u5f97\u5f88\u5570\u55e6\u662f\u5f88\u5bb9\u6613\u7684\uff0c\u800c\u4e14\u5b8c\u5168\u53ef\u4ee5\u5199\u4e00\u5927\u6bb5\u5220\u6389\u4e5f\u4e0d\u4f1a\u5f71\u54cd\u6700\u7ec8\u7f16\u8bd1\u7ed3\u679c\u7684\u4e1c\u897f\u3002<br \/>&#8211; \u4e0d\u8fc7 cmake \u53c8\u662f\u4e00\u79cd\u96be\u8bfb\u96be\u6539\u96be\u7ef4\u62a4\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u6211\u4e00\u822c\u4e60\u60ef\u5230\u4e86\u4e00\u5b9a\u89c4\u6a21\u5c31\u62bd\u51fa\u6765\u4e00\u90e8\u5206\u6a21\u5757\u5316\uff0c\u4e0d\u7136\u51e0\u5343\u884c\u7684 cmake \u771f\u662f\u4e00\u79cd san check\uff0c\u4e0d\u53ef\u76f4\u89c6\uff0c\u4e0d\u53ef\u8c03\u8bd5\u3002<br \/>&#8211; \u53ef\u662f\u56e0\u4e3a cmake \u7684 function \u6ca1\u6709\u8fd4\u56de\u503c\uff0c\u8bed\u6cd5\u8bbe\u8ba1\u5947\u8be1\uff0c\u53c8\u8ba9\u5206\u79bb\u6a21\u5757\u8fd9\u4ef6\u4e8b\u672c\u8eab\u53d8\u5f97\u5f88\u75db\u82e6\u2026\u2026<\/p>\n<p>\u6574\u5230\u6700\u540e\uff0c\u4e3b\u8981\u76ee\u7684\u4e0d\u8fc7\u662f\u4e3a\u4e86\u751f\u6210\u4e00\u5806\u6b63\u786e\u7684 `gcc -isystem xxx fxxk.cpp -l yyy`<br \/>\u6240\u4ee5\u7ed3\u8bba\u662f\uff0c\u8fdc\u79bb cmake\uff0c\u8fdc\u79bb\u8279                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u95ee\u90a3\u79cd\u597d\u51e0\u5343\u884c\u7684 CMakeLi&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/108919"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=108919"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/108919\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=108919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=108919"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=108919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}