cmake if否定
时间: 2023-10-19 11:35:50 浏览: 227
在引用的代码中,cmake中的if语句用于判断CMAKE_BUILD_TYPE是否等于Release,如果是,则设置MyProjectName为mylib;否则设置CMAKE_BUILD_TYPE为Debug,并将MyProjectName设置为mylibd。因此,cmake中的if语句用于对CMAKE_BUILD_TYPE进行否定判断。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Linux下CMake脚本使用详解](https://blog.csdn.net/fittec/article/details/121758493)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文