cmake find_package(Boost)选择路径

时间:2019-09-21 08:27:17

标签: boost cmake

我最近在usr / local中为项目安装了Boost版本(1.71)的升级版,而我的SDK在const el = wp.element.createElement; const { registerBlockType } = wp.blocks; const { __ } = wp.i18n; const { RichText, InspectorControls } = wp.editor; const { Fragment, withAPIDate, Component } = wp.element; const { TextControl, CheckboxControl, RadioControl, SelectControl, TextareaControl, ToggleControl, RangeControl, Panel, PanelBody, PanelRow } = wp.components; const { withState } = wp.compose; class MyToggleControl extends Component { constructor(props, context) { super(props, context); this.toggleon = this.toggleon.bind(this); this.toggleoff = this.toggleoff.bind(this); this.state = { label: 'No-Togglemode', arrow: false, mode: "no-toggle", onChange: this.toggleon, }; } toggleon() { this.setState({ label: 'Togglemode', arrow: !this.state.arrow, mode: "toggle", }); } toggleoff() { this.setState({ label: 'No-Togglemode', arrow: !this.state.arrow, mode: "no-toggle", }); } render() { if (this.state.mode === 'no-toggle') { return el(PanelRow, {}, el(ToggleControl, { label: this.state.label, mode: "no-toggle", onChange: this.toggleon, })); } if (this.state.mode === 'toggle') { return el(PanelRow, {}, el(ToggleControl, { label: this.state.label, mode: "toggle", onChange: this.toggleoff, })); } } } registerBlockType("timogede/icon-list", { title: __("Icon List"), icon: "lock", category: "common", attributes: { mode: { type: 'string', } }, edit: function(props) { return el(Fragment, {}, /* * INSPECTOR CONTROL AREA */ el(InspectorControls, {}, el(PanelBody, { title: 'Form Settings', initialOpen: true }, /* Toggle Field */ el(MyToggleControl, {}, ), ), ), /* * CONTENT AREA */ ); }, save: function(props) { return el('div', { className: this.state.mode, }, ); } }); 中有较旧的工作版本

由于某些错误,我需要回到以前的升级状态,而无需卸载任何设置。我尝试了以下实验来切换我的Boost位置,但这无济于事。任何指针我在做什么错?有没有不删除升级后的增强功能的解决方法

CMAKE SNIPPET

${CUSTOMPATH}

输出

  

找到了Boost:/usr/local/lib/cmake/Boost-1.71.0/BoostConfig.cmake(找到的版本为“ 1.71.0”)找到了以下组件:filesystem program_options系统计时计时器

     

增强包含目录:/ usr / local / include

     

增强库:Boost :: filesystem

0 个答案:

没有答案