chore: add build annotation

This commit is contained in:
rankun 2025-01-10 11:44:36 +08:00
parent 561d8eeb54
commit 73ec65e156
2 changed files with 4 additions and 2 deletions

View file

@ -55,7 +55,8 @@ if (MSVC)
# avoid warning C4819
#add_compile_options(-source-charset:utf-8)
#add_compile_options(/utf-8)
# /utf-8 will set source charset and execution charset to utf-8, so we don't need to set source-charset:utf-8
add_compile_options(/utf-8)
# ensure we use minimal "windows.h" lib without the crazy min max macros
add_compile_definitions(NOMINMAX WIN32_LEAN_AND_MEAN)
@ -264,6 +265,7 @@ endif()
# MacOS
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
# qt6 need 10.15 or later
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
# copy bundle file

View file

@ -58,7 +58,7 @@ fi
mkdir $build_path
cd $build_path
cmake_params="-DCMAKE_PREFIX_PATH=$qt_cmake_path -DCMAKE_BUILD_TYPE=$build_mode -DCMAKE_OSX_ARCHITECTURES=x86_64 -D CMAKE_OSX_DEPLOYMENT_TARGET=10.10"
cmake_params="-DCMAKE_PREFIX_PATH=$qt_cmake_path -DCMAKE_BUILD_TYPE=$build_mode -DCMAKE_OSX_ARCHITECTURES=x86_64"
cmake $cmake_params ../..
if [ $? -ne 0 ] ;then
echo "cmake failed"