cmake

https://cmake.org/cmake/help/v3.12/variable/CMAKE_BUILD_TYPE.html

CMAKE_C_FLAGS_<CONFIG>, specified as uppercase: CMAKE_C_FLAGS_[DEBUG|RELEASE|RELWITHDEBINFO|MINSIZEREL|...]



設定linker參數
https://cmake.org/cmake/help/latest/variable/CMAKE_EXE_LINKER_FLAGS.html
 
MSVC似乎不吃 LDFLAGS,要設定下面的 改_INIT似乎比較安全
OBS是都設定才沒顯示訊息
command line要用 -DCMAKE_EXE_LINKER_FLAGS_INIT=/LTCG

CMAKE_EXE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS 



gui內使用vcpkg要在這邊指定
C:/vcpkg/scripts/buildsystems/vcpkg.cmake
https://stackoverflow.com/questions/29982505/setting-a-cross-compiler-file-using-the-cmake-gui


-DCMAKE_SYSTEM_VERSION=10.0
指定target system version

留言

這個網誌中的熱門文章

OBS 抓不到畫面, 視窗, 遊戲擷取, 黑或白畫面, 當掉 ,卡住, black/white screen, window game capture, crash, freeze

優化實況(一) OBS設定 streaming settings

OBS plugin obs-text 顯示播放中音樂, display playing music