Skip to content

Commit 0c75f05

Browse files
committed
Fix cmake message syntax and make some warn message can suppressed
1 parent f68e64d commit 0c75f05

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

1k/fetch.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function(_1kfetch_init)
3939
set(_1kdist_base_url "${_1kdist_base_url}/${_1kdist_ver}" PARENT_SCOPE)
4040
set(_1kdist_ver ${_1kdist_ver} PARENT_SCOPE)
4141
else()
42-
message(WARNING "Resolve 1kdist uri fail, ${_1kdist_error}, the _1kfetch_dist will not work")
42+
message(AUTHOR_WARNING "Resolve 1kdist uri fail, ${_1kdist_error}, the _1kfetch_dist will not work")
4343
endif()
4444
endfunction()
4545

@@ -253,5 +253,5 @@ endmacro()
253253
if(PWSH_PROG)
254254
_1kfetch_init()
255255
else()
256-
message(WARNING "fetch.cmake: PowerShell is missing, the fetch functions not work, please install from https://github.com/PowerShell/PowerShell/releases")
256+
message(AUTHOR_WARNING "fetch.cmake: PowerShell is missing, the fetch functions not work, please install from https://github.com/PowerShell/PowerShell/releases")
257257
endif()

1k/platforms.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,6 @@ endif()
9898

9999
function(_1k_deprecated_32bit project_name release_ver)
100100
if(("${ARCH_ALIAS}" STREQUAL "x86") OR ("${ARCH_ALIAS}" MATCHES "armeabi-v7a"))
101-
message(WARNING "Building 32-bit[${ARCH_ALIAS}] ${project_name} is deprecated, and will be removed in next release ${release_ver}")
101+
message(AUTHOR_WARNING "Building 32-bit[${ARCH_ALIAS}] ${project_name} is deprecated, and will be removed in next release ${release_ver}")
102102
endif()
103103
endfunction()

3rdparty/chipmunk/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(CHIPMUNK_VERSION_MAJOR 7)
88
set(CHIPMUNK_VERSION_MINOR 0)
99
set(CHIPMUNK_VERSION_PATCH 3)
1010
set(CHIPMUNK_VERSION "${CHIPMUNK_VERSION_MAJOR}.${CHIPMUNK_VERSION_MINOR}.${CHIPMUNK_VERSION_PATCH}")
11-
message("Configuring Chipmunk2D version ${CHIPMUNK_VERSION}")
11+
message(STATUS "Configuring Chipmunk2D version ${CHIPMUNK_VERSION}")
1212

1313

1414
if(CP_BUILD_SHARED)

cmake/Modules/AXBuildHelpers.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function(ax_sync_target_res ax_target)
2727
ax_def_sync_resource_target(${ax_target} ${sync_target_name})
2828

2929
if(NOT TARGET ${sync_target_name})
30-
message(WARNING "SyncResource targe for ${ax_target} is not defined")
30+
message(AUTHOR_WARNING "SyncResource targe for ${ax_target} is not defined")
3131
return()
3232
endif()
3333

cmake/Modules/AXConfigDefine.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if (WINDOWS)
4141
# refer to:
4242
# - https://github.com/axmolengine/axmol/issues/991
4343
# - https://github.com/axmolengine/axmol/issues/1246
44-
message(WARNING "Forcing set CMAKE_C_STANDARD to 99 when winsdk < 10.0.22000.0")
44+
message(AUTHOR_WARNING "Forcing set CMAKE_C_STANDARD to 99 when winsdk < 10.0.22000.0")
4545
set(CMAKE_C_STANDARD 99)
4646
endif()
4747
else()
@@ -235,7 +235,7 @@ enable_language(ASM_NASM OPTIONAL)
235235

236236
if(NOT EXISTS "${CMAKE_ASM_NASM_COMPILER}")
237237
set(CMAKE_ASM_NASM_COMPILER_LOADED FALSE CACHE BOOL "Does cmake asm nasm compiler loaded" FORCE)
238-
message(WARNING "The nasm compiler doesn't present on your system PATH, please download from: https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/")
238+
message(AUTHOR_WARNING "The nasm compiler doesn't present on your system PATH, please download from: https://www.nasm.us/pub/nasm/releasebuilds/2.16.01/")
239239
endif()
240240

241241
# we don't need cmake BUILD_TESTING feature

core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ if(XCODE OR VS)
364364
ax_mark_code_files("${_AX_CORE_LIB}")
365365
endif()
366366

367-
message("CMake ${_AX_CORE_LIB} target_precompile_headers")
367+
message(STATUS "CMake precompile headers for ${_AX_CORE_LIB}")
368368
target_precompile_headers(${_AX_CORE_LIB} PRIVATE
369369
"$<$<COMPILE_LANGUAGE:CXX>:axmol.h>"
370370
)

extensions/Live2D/Framework/src/Rendering/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ target_sources(${LIB_NAME}
55
)
66

77
if(NOT DEFINED FRAMEWORK_SOURCE)
8-
message(WARNING
8+
message(AUTHOR_WARNING
99
"[${LIB_NAME}] Set 'FRAMEWORK_SOURCE' variable to 'axmol' when using axmol rendering."
1010
)
1111
set(FRAMEWORK_SOURCE axmol)

tests/cpp-tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ elseif(WINRT)
603603
endif()
604604

605605
if((NOT IOS) AND (NOT WINRT))
606-
message(STATUS "CMake ${APP_NAME} target_precompile_headers")
606+
message(STATUS "CMake precompile headers for ${APP_NAME}")
607607
target_precompile_headers(${APP_NAME} PRIVATE
608608
"$<$<COMPILE_LANGUAGE:CXX>:axmol.h>"
609609
)

tests/fairygui-tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ if ((NOT APPLE) AND (NOT WINRT))
204204
endif()
205205

206206
if((NOT IOS) AND (NOT WINRT))
207-
message(STATUS "CMake ${APP_NAME} target_precompile_headers")
207+
message(STATUS "CMake precompile headers for ${APP_NAME}")
208208
target_precompile_headers(${APP_NAME} PRIVATE
209209
"$<$<COMPILE_LANGUAGE:CXX>:axmol.h>"
210210
)

tests/live2d-tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ if ((NOT APPLE) AND (NOT WINRT))
205205
endif()
206206

207207
if((NOT IOS) AND (NOT WINRT))
208-
message(STATUS "CMake ${APP_NAME} target_precompile_headers")
208+
message(STATUS "CMake precompile headers for ${APP_NAME}")
209209
target_precompile_headers(${APP_NAME} PRIVATE
210210
"$<$<COMPILE_LANGUAGE:CXX>:axmol.h>"
211211
)

0 commit comments

Comments
 (0)