<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takamints</author_name>
  <author_url>https://blog.hatena.ne.jp/takamints/</author_url>
  <blog_title>銀の弾丸</blog_title>
  <blog_url>https://takamints.hatenablog.jp/</blog_url>
  <categories>
    <anon>開発環境</anon>
  </categories>
  <description>GCC で MinGW と Raspberry Pi 両方で動くプログラムを書いていて、リンクするライブラリは切り替えたいという状況。 色々調べて何とかなったので書いておきます。もっと良い判定方法があるかもしれないですけど、とりあえず。 CMakeLists.txt : ジェネレータの名前に MinGW が含まれていたら bar もリンク gist.github.com 要点 if(条件式) ～ elseif() ～ else() ～ endif() が使える。 elseif, else, endif の条件式は無視されるので空でよい。 MATCHES は正規表現のマッチングを行う演算子。 参…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakamints.hatenablog.jp%2Fentry%2F2015%2F05%2F27%2F000530&quot; title=&quot;CMakeでジェネレータを判定して分岐する - 銀の弾丸&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/t/takamints/20151003/20151003145058.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-05-27 00:05:30</published>
  <title>CMakeでジェネレータを判定して分岐する</title>
  <type>rich</type>
  <url>https://takamints.hatenablog.jp/entry/2015/05/27/000530</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
