Susumu Yata
susum****@gmail*****
2014年 6月 16日 (月) 10:08:47 JST
矢田です. CMake 3.0 から新しい設定(CMP0026)が追加されたようです. http://www.cmake.org/cmake/help/v3.0/policy/CMP0026.html 明示的な指定をおこなうか,新しい挙動を使うようになっていれば 警告は消えるそうなので, cmake_policy で設定すれば大丈夫そうです. > This policy was introduced in CMake version 3.0. > CMake version 3.0.0 warns when the policy is not set and > uses OLD behavior. Use the cmake_policy command to set > it to OLD or NEW explicitly. ひとまず,古い挙動(OLD)に設定すれば警告なしで今まで通りに 動くと思います.将来的なことを考えれば NEW にすべきでしょうか…. 古い CMake のことも考慮すると,以下のような記述を入れることに なるだろうと思います. if(COMMAND cmake_policy) if(POLICY CMP0026) cmake_policy(SET CMP0026 OLD) endif() endif() 2014-06-15 0:27 GMT+09:00 hiroshi hatake <cosmo****@gmail*****>: > 畑ケです。 > > CMake 3.0がリリースされましたね! > このバージョンでwindowsに関連する > http://www.cmake.org/Bug/bug_relationship_graph.php?bug_id=14600&graph=dependency&orientation=vertical > のバグが治っていることが期待されました。 > そこで、Windows 8.1 64bit版 + Visual Studio 2010にてMroonga 4.03の > nightly 2014.6.14をビルドしてみました。 > > --- > PS> cmake --version > cmake version 3.0.0 > > CMake suite maintained and supported by Kitware (kitware.com/cmake). > --- > > ビルドを走らせた結果、ビルドに成功しました。 > mroongaをインストール済みのzipアーカイブも成功して、 > --- > mysql>show engines; > MariaDB [(none)]> show engines; > +--------------------+---------+------------------------------------------------ > ----------------------------+--------------+------+------------+ > | Engine | Support | Comment > | Transactions | XA | Savepoints | > +--------------------+---------+------------------------------------------------ > ----------------------------+--------------+------+------------+ > | CSV | YES | CSV storage engine > | NO | NO | NO | > | InnoDB | DEFAULT | Percona-XtraDB, Supports transactions, row-leve > l locking, and foreign keys | YES | YES | YES | > | MEMORY | YES | Hash based, stored in memory, useful for tempor > ary tables | NO | NO | NO | > | MyISAM | YES | MyISAM storage engine > | NO | NO | NO | > | MRG_MyISAM | YES | Collection of identical MyISAM tables > | NO | NO | NO | > | PERFORMANCE_SCHEMA | YES | Performance Schema > | NO | NO | NO | > | mroonga | YES | CJK-ready fulltext search, column store > | NO | NO | NO | > | Aria | YES | Crash-safe tables with MyISAM heritage > | NO | NO | NO | > +--------------------+---------+------------------------------------------------ > ----------------------------+--------------+------+------------+ > 8 rows in set (0.02 sec) > --- > の結果が得られています。 > > ですが、大量の以下のようなwarningが出ます: > > --- > CMake Warning (dev) at cmake/install_macros.cmake:36 (GET_TARGET_PROPERTY): > Policy CMP0026 is not set: Disallow use of the LOCATION target property. > Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy > command to set the policy and suppress this warning. > > The LOCATION property should not be read from target "mysqlclient". Use > the target name directly with add_custom_command, or use the generator > expression $<TARGET_FILE>, as appropriate. > --- > > ちょっとこれは自分で調べてみてもよく分からなかったので、 > ビルド結果の報告も踏まえてこちらに投稿してみることにしました。 > > _______________________________________________ > groonga-dev mailing list > groon****@lists***** > http://lists.sourceforge.jp/mailman/listinfo/groonga-dev -- Susumu Yata <susum****@gmail*****>