1
0

fix: fix github action build error

This commit is contained in:
2026-02-03 16:07:44 +08:00
parent a654370b82
commit 37904fd5a4
4 changed files with 10 additions and 4 deletions

View File

@@ -1,2 +1,5 @@
#!/bin/bash
set -euo pipefail
# Just directly record self as root directory # Just directly record self as root directory
export STB_ROOT=$(pwd) export STB_ROOT=$(pwd)

View File

@@ -1,2 +1,5 @@
#!/bin/bash
set -euo pipefail
# Just directly record self as root directory # Just directly record self as root directory
export STB_ROOT=$(pwd) export STB_ROOT=$(pwd)

View File

@@ -12,9 +12,9 @@
if (NOT DEFINED STB_ROOT) if (NOT DEFINED STB_ROOT)
set(STB_FOUND FALSE) set(STB_FOUND FALSE)
else () else ()
# Look for STB_image.h in the specified STB_ROOT directory # Look for stb_image.h in the specified STB_ROOT directory
find_path(STB_INCLUDE_DIR find_path(STB_INCLUDE_DIR
NAMES STB_image.h NAMES stb_image.h
HINTS ${STB_ROOT} HINTS ${STB_ROOT}
NO_DEFAULT_PATH NO_DEFAULT_PATH
) )
@@ -46,7 +46,7 @@ if (STB_FOUND)
) )
else () else ()
# If it is required, show infomations. # If it is required, show infomations.
if (std_FIND_REQUIRED) if (STB_FIND_REQUIRED)
message(FATAL_ERROR "Fail to find STB library.") message(FATAL_ERROR "Fail to find STB library.")
endif () endif ()
endif () endif ()

View File

@@ -45,7 +45,7 @@ include(CMakePackageConfigHelpers)
# we should enable PIC (position independent code), otherwise build process will fail. # we should enable PIC (position independent code), otherwise build process will fail.
# Also we should let all symbols in final dll be hidden (not exported) in default. # Also we should let all symbols in final dll be hidden (not exported) in default.
# Because we only want export functions we ordered. # Because we only want export functions we ordered.
if ((NOT WIN32) AND NEMO_BUILD_BMAP) if ((NOT WIN32) AND (NEMO_BUILD_BALLANCE AND NEMO_BUILD_BMAP))
set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_C_VISIBILITY_PRESET hidden) set(CMAKE_C_VISIBILITY_PRESET hidden)
set(CMAKE_POSITION_INDEPENDENT_CODE True) set(CMAKE_POSITION_INDEPENDENT_CODE True)