久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <small id='CL0jC'></small><noframes id='CL0jC'>

      • <bdo id='CL0jC'></bdo><ul id='CL0jC'></ul>

    2. <legend id='CL0jC'><style id='CL0jC'><dir id='CL0jC'><q id='CL0jC'></q></dir></style></legend>

      <tfoot id='CL0jC'></tfoot>
      1. <i id='CL0jC'><tr id='CL0jC'><dt id='CL0jC'><q id='CL0jC'><span id='CL0jC'><b id='CL0jC'><form id='CL0jC'><ins id='CL0jC'></ins><ul id='CL0jC'></ul><sub id='CL0jC'></sub></form><legend id='CL0jC'></legend><bdo id='CL0jC'><pre id='CL0jC'><center id='CL0jC'></center></pre></bdo></b><th id='CL0jC'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CL0jC'><tfoot id='CL0jC'></tfoot><dl id='CL0jC'><fieldset id='CL0jC'></fieldset></dl></div>

        在 CMake 中,如何解決 Visual Studio 2010 嘗試添加的

        In CMake, how do I work around the Debug and Release directories Visual Studio 2010 tries to add?(在 CMake 中,如何解決 Visual Studio 2010 嘗試添加的 Debug 和 Release 目錄?)

        <small id='KQBSE'></small><noframes id='KQBSE'>

          <tbody id='KQBSE'></tbody>
      2. <tfoot id='KQBSE'></tfoot>
          <i id='KQBSE'><tr id='KQBSE'><dt id='KQBSE'><q id='KQBSE'><span id='KQBSE'><b id='KQBSE'><form id='KQBSE'><ins id='KQBSE'></ins><ul id='KQBSE'></ul><sub id='KQBSE'></sub></form><legend id='KQBSE'></legend><bdo id='KQBSE'><pre id='KQBSE'><center id='KQBSE'></center></pre></bdo></b><th id='KQBSE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KQBSE'><tfoot id='KQBSE'></tfoot><dl id='KQBSE'><fieldset id='KQBSE'></fieldset></dl></div>

              • <bdo id='KQBSE'></bdo><ul id='KQBSE'></ul>
                <legend id='KQBSE'><style id='KQBSE'><dir id='KQBSE'><q id='KQBSE'></q></dir></style></legend>

                  本文介紹了在 CMake 中,如何解決 Visual Studio 2010 嘗試添加的 Debug 和 Release 目錄?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  幾年前,我正在嘗試使用 Visual Studio 2010 構建我的一個基于 CMake 的項目,但我遇到了與項目的輸出目錄有關的問題.Visual Studio 一直非常熱衷于在輸出二進制文件時添加 Debug/和 Release/子目錄,出于各種原因,我一直非常熱衷于刪除它們 - 現在我正在使用新版本的 CMake 和新版本的Visual Studio,CMake 中的舊解決方法似乎不再有效,我正在尋找新"的方法.

                  I'm trying to build one of my CMake-based projects from a couple of years ago with Visual Studio 2010 and I'm running into problems to do with the output directory for a project. Visual Studio has always been very keen on adding Debug/ and Release/ subdirectories when outputting binaries, and for various reasons I've always been very keen on removing them - now that I'm using a new version of CMake and a new version of Visual Studio, the old workaround in CMake no longer seems to work, and I'm looking to find out the "new" way of doing it.

                  對于以前版本的 CMake (2.6) 和以前版本的 Visual Studio (2008),我使用了以下內容:

                  With a previous version of CMake (2.6) and a previous version of Visual Studio (2008), I used the following:

                  IF(MSVC_IDE)
                      # A hack to get around the "Debug" and "Release" directories Visual Studio tries to add
                      SET_TARGET_PROPERTIES(${targetname} PROPERTIES PREFIX "../")
                      SET_TARGET_PROPERTIES(${targetname} PROPERTIES IMPORT_PREFIX "../")
                  ENDIF(MSVC_IDE)
                  

                  這很好用,但似乎不再奏效.請問有誰知道類似但更新的解決方法可以與 CMake 2.8.6 和 Visual Studio 2010 一起使用嗎?

                  This worked fine, but no longer seems to do the trick. Please does anyone know of a similar but more up-to-date workaround that will work with CMake 2.8.6 and Visual Studio 2010?

                  推薦答案

                  這在一定程度上取決于您想要什么,但我建議您查看可用的 目標屬性,類似于這個問題.

                  It depends a bit on what you want precisely, but I would recommend to take a look at the available target properties, similar to this question.

                  這在一定程度上取決于您究竟想要什么.對于每個目標,您可以手動設置 library_output_directory 或runtime_output_directory 屬性.

                  It depends a bit on what you want exactly. For each target, you could manually set the library_output_directory or runtime_output_directory properties.

                  if ( MSVC )
                      set_target_properties( ${targetname} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${youroutputdirectory} )
                      set_target_properties( ${targetname} PROPERTIES LIBRARY_OUTPUT_DIRECTORY_DEBUG ${youroutputdirectory} )
                      set_target_properties( ${targetname} PROPERTIES LIBRARY_OUTPUT_DIRECTORY_RELEASE ${youroutputdirectory} )
                      # etc for the other available configuration types (MinSizeRel, RelWithDebInfo)
                  endif ( MSVC )
                  

                  您也可以使用以下方法對所有子項目全局執行此操作:

                  You could also do this globally for all sub-projects, using something like this:

                  # First for the generic no-config case (e.g. with mingw)
                  set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${youroutputdirectory} )
                  set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${youroutputdirectory} )
                  set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${youroutputdirectory} )
                  # Second, for multi-config builds (e.g. msvc)
                  foreach( OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES} )
                      string( TOUPPER ${OUTPUTCONFIG} OUTPUTCONFIG )
                      set( CMAKE_RUNTIME_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${youroutputdirectory} )
                      set( CMAKE_LIBRARY_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${youroutputdirectory} )
                      set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${OUTPUTCONFIG} ${youroutputdirectory} )
                  endforeach( OUTPUTCONFIG CMAKE_CONFIGURATION_TYPES )
                  

                  這篇關于在 CMake 中,如何解決 Visual Studio 2010 嘗試添加的 Debug 和 Release 目錄?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Why do two functions have the same address?(為什么兩個函數的地址相同?)
                  Why the initializer of std::function has to be CopyConstructible?(為什么 std::function 的初始化程序必須是可復制構造的?)
                  mixing templates with polymorphism(混合模板與多態性)
                  When should I use the keyword quot;typenamequot; when using templates(我什么時候應該使用關鍵字“typename?使用模板時)
                  Dependent name resolution amp; namespace std / Standard Library(依賴名稱解析命名空間 std/標準庫)
                  gcc can compile a variadic template while clang cannot(gcc 可以編譯可變參數模板,而 clang 不能)
                    <tfoot id='Du1x6'></tfoot>

                          <tbody id='Du1x6'></tbody>
                      1. <legend id='Du1x6'><style id='Du1x6'><dir id='Du1x6'><q id='Du1x6'></q></dir></style></legend>

                        <small id='Du1x6'></small><noframes id='Du1x6'>

                            <bdo id='Du1x6'></bdo><ul id='Du1x6'></ul>

                          • <i id='Du1x6'><tr id='Du1x6'><dt id='Du1x6'><q id='Du1x6'><span id='Du1x6'><b id='Du1x6'><form id='Du1x6'><ins id='Du1x6'></ins><ul id='Du1x6'></ul><sub id='Du1x6'></sub></form><legend id='Du1x6'></legend><bdo id='Du1x6'><pre id='Du1x6'><center id='Du1x6'></center></pre></bdo></b><th id='Du1x6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='Du1x6'><tfoot id='Du1x6'></tfoot><dl id='Du1x6'><fieldset id='Du1x6'></fieldset></dl></div>
                            主站蜘蛛池模板: 很黄很污的网站 | 中文字幕在线三区 | 久久久人成影片免费观看 | 亚洲免费视频在线观看 | 日韩aⅴ在线观看 | 91社区在线观看 | 亚洲欧美在线一区 | 日本在线视频不卡 | 欧美精品久久久久久久久老牛影院 | 欧美一区二区三区小说 | 日日夜夜精品视频 | 99精品久久久久久中文字幕 | 日韩无 | 亚洲精品久久久久中文字幕二区 | 极情综合网 | 欧美一级淫片免费视频黄 | 福利一区视频 | 欧美男人天堂 | 一区二区三区四区毛片 | 午夜精品一区二区三区免费视频 | 欧美日韩国产精品一区 | 欧美一级黄色片免费观看 | 精品免费av | a级大毛片| 81精品国产乱码久久久久久 | 精品国产综合 | 香蕉av免费 | 久视频在线观看 | 免费看黄视频网站 | 日本一区二区高清不卡 | 国产资源在线播放 | 亚洲黄色高清视频 | 国产色婷婷精品综合在线播放 | 亚洲精品视频二区 | 男女羞羞视频大全 | 欧美国产日韩成人 | 精品国产视频 | 国产午夜三级一区二区三 | 欧美xxxx色视频在线观看免费 | h免费观看 | 最新国产精品精品视频 |