{"id":7159,"date":"2024-09-21T02:51:07","date_gmt":"2024-09-20T17:51:07","guid":{"rendered":"https:\/\/k.foolslab.net\/dailyreport\/?p=7159"},"modified":"2024-09-21T02:51:07","modified_gmt":"2024-09-20T17:51:07","slug":"2024-9-20","status":"publish","type":"post","link":"https:\/\/k.foolslab.net\/dailyreport\/2024-9-20\/","title":{"rendered":"2024\/9\/20(\u91d1)"},"content":{"rendered":"\n<p>libsoundio\u3092\u3061\u3087\u3063\u3068CMake\u3067\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3048\u3089\u3044\u76ee\u306b\u3042\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u3001Windows\u4e0a\u3067\u666e\u901a\u306bCMake\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3060\u3051\u3067\u6b7b\u306c\u3002\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u308b\u3068\u3001MXE\u306a\u308b\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3002\u306a\u3093\u3060\u3053\u308a\u3083\uff1fCMake\u3060\u3051\u3067\u6e08\u3080\u306e\u304cCMake\u306e\u7f8e\u70b9\u3060\u308d\u3046\u306b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.clear-code.com\/blog\/2019\/6\/6.html\">https:\/\/www.clear-code.com\/blog\/2019\/6\/6.html<\/a><\/p>\n\n\n\n<p>\u3069\u3046\u3084\u3089\u3001MXE\u3068\u3044\u3046\u306e\u306fGCC\u65b9\u8a00\u3067\u66f8\u304b\u308c\u305f\u30b3\u30fc\u30c9\u3092MSVC\u306a\u3069\u3067\u3082\u30d3\u30eb\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u5909\u63db\u3057\u3066\u304f\u308c\u308b\u3088\u3046\u306a\u3082\u306e\u3089\u3057\u3044\u3002\u6c17\u6301\u3061\u60aa\u3044\u4e0a\u306b\u5c0e\u5165\u304c\u9762\u5012\u304f\u3055\u3044\u3002CMake\u306e\u8a2d\u5b9a\u5909\u66f4\u306e\u307f\u3067\u3069\u3046\u306b\u304b\u306a\u3089\u306a\u3044\u304b\u8a66\u884c\u3057\u3066\u307f\u308b\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u3001\u6b7b\u306c\u307b\u3069\u5927\u91cf\u306e\u69cb\u6587\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002\u6839\u672c\u3092\u8fbf\u3063\u3066\u307f\u308b\u3068\u3069\u3046\u3084\u3089<code>stdatomic.h<\/code>\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u306e\u304c\u8af8\u60aa\u306e\u6839\u6e90\u3089\u3057\u3044\u3002C++\u3067\u306fC++23\u3067\u5c0e\u5165\u3055\u308c\u305f\u30d8\u30c3\u30c0\u3060\u304c\u3001C\u3067\u306fC11\u3067\u5165\u3063\u3066\u3044\u308b\u3002MSVC\u306f\u3053\u308c\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3059\u308b\u3068\u5373\u6b7b\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-c-team-blog wp-block-embed-c-team-blog\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"ruTwmx4QAz\"><a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/c11-atomics-in-visual-studio-2022-version-17-5-preview-2\/\">C11 Atomics in Visual Studio 2022 version 17.5 Preview 2<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;C11 Atomics in Visual Studio 2022 version 17.5 Preview 2&#8221; &#8212; C++ Team Blog\" src=\"https:\/\/devblogs.microsoft.com\/cppblog\/c11-atomics-in-visual-studio-2022-version-17-5-preview-2\/embed\/#?secret=jDJanqANGY#?secret=ruTwmx4QAz\" data-secret=\"ruTwmx4QAz\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u898b\u308b\u306b\u3001C\u6a19\u6e96\u3092C11\u306b\u3057\u3066<code>\/experimental:c11atomics<\/code>\u3092\u4ed8\u3051\u308c\u3070\u901a\u308b\u3089\u3057\u3044\u3002\u305d\u3057\u305f\u3089\u78ba\u304b\u306b\u5927\u90e8\u5206\u306e\u30a8\u30e9\u30fc\u306f\u6d88\u3048\u305f\u3002\u6b8b\u3063\u305f\u306e\u306f<code>unistd.h<\/code>\u306a\u3069\u306eUnix\u74b0\u5883\u7279\u6709\u306e\u30d8\u30c3\u30c0\u306a\u3069\u3060\u3002\u3069\u3046\u3084\u3089\u5b8c\u5168\u306bLinux\u74b0\u5883\u00d7gcc\u30d3\u30eb\u30c9\u3092\u524d\u63d0\u306b\u66f8\u3044\u3066\u4ed6\u74b0\u5883\u306fMXE\u3067\u306a\u3093\u3068\u304b\u3059\u308b\u3068\u3044\u3046\u8179\u7a4d\u3082\u308a\u3089\u3057\u3044\u3002\u8a55\u5224\u306f\u826f\u3044\u306e\u306b\u4e2d\u8eab\u306f\u306a\u304b\u306a\u304b\u8210\u3081\u305f\u958b\u767a\u3060\u3002<\/p>\n\n\n\n<p>vcpkg\u306eport\u5b9a\u7fa9\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u30c6\u30b9\u30c8\u3084\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30d3\u30eb\u30c9\u3092\u5207\u308c\u3070\u826f\u3044\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u3002\u3055\u3089\u306b\u3001\u52d5\u7684\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u30d3\u30eb\u30c9\u3057\u305f\u3068\u304d\u306e\u307f\u3044\u304f\u3064\u304b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3053\u3068\u3082\u5206\u304b\u3063\u305f\u305f\u3081\u3001\u305d\u308c\u3082\u30aa\u30d5\u306b\u3057\u305f\u3002\u6700\u7d42\u7684\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u884c\u304d\u3064\u3044\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>if(MSVC)\n  set(CMAKE_C_FLAGS \"${CMAKE_C_FLAGS} \/experimental:c11atomics\")\n  set(CMAKE_C_STANDARD 11)\n  set(BUILD_EXAMPLE_PROGRAMS OFF)\n  set(BUILD_TESTS OFF)\n  set(BUILD_DYNAMIC_LIBS OFF)\nendif()\nFetchContent_Declare(\n  libsoundio\n  GIT_REPOSITORY https:\/\/github.com\/andrewrk\/libsoundio.git\n  GIT_TAG 2.0.0)\nFetchContent_MakeAvailable(libsoundio)<\/code><\/pre>\n\n\n\n<p>\u30b0\u30ed\u30fc\u30d0\u30eb\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u6c5a\u3057\u3066\u3057\u307e\u3046\u306e\u306f\u5225\u3067\u5bfe\u51e6\u3059\u308b\u3068\u3057\u3066\u3001\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067\u30d3\u30eb\u30c9\u304c\u901a\u3063\u305f\u3002<\/p>\n\n\n\n<p>\u30b0\u30ed\u30fc\u30d0\u30eb\u3092\u6c5a\u3057\u3066\u3057\u307e\u3046\u554f\u984c\u306b\u3064\u3044\u3066\u306f\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5909\u66f4\u524d\u3092\u4fdd\u5b58\u3057\u3066\u304a\u3051\u3070\u5f8c\u3067\u5fa9\u5e30\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/73885608\/how-to-add-compile-options-to-cmake-fetchcontent-dependency-using-target-interfa\">https:\/\/stackoverflow.com\/questions\/73885608\/how-to-add-compile-options-to-cmake-fetchcontent-dependency-using-target-interfa<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>libsoundio\u3092\u3061\u3087\u3063\u3068CMake\u3067\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u3048\u3089\u3044\u76ee\u306b\u3042\u3063\u305f\u3002 \u307e\u305a\u3001Windows\u4e0a\u3067\u666e\u901a\u306bCMake\u30d3\u30eb\u30c9\u3057\u3088\u3046\u3068\u3057\u305f\u3060\u3051\u3067\u6b7b\u306c\u3002\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u898b\u308b\u3068\u3001MXE\u306a\u308b\u30c4\u30fc\u30eb\u3092\u4f7f\u3048\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3002\u306a &hellip; <\/p>\n<div><a href=\"https:\/\/k.foolslab.net\/dailyreport\/2024-9-20\/\" class=\"more\">Read more &raquo;<span class=\"screen-reader-text\"> &#8220;2024\/9\/20(\u91d1)&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7159","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/7159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/comments?post=7159"}],"version-history":[{"count":5,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/7159\/revisions"}],"predecessor-version":[{"id":7164,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/posts\/7159\/revisions\/7164"}],"wp:attachment":[{"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/media?parent=7159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/categories?post=7159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/k.foolslab.net\/dailyreport\/wp-json\/wp\/v2\/tags?post=7159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}