fix: fix github action build error
This commit is contained in:
3
.github/scripts/stb/linux.sh
vendored
3
.github/scripts/stb/linux.sh
vendored
@@ -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)
|
||||||
|
|||||||
3
.github/scripts/stb/macos.sh
vendored
3
.github/scripts/stb/macos.sh
vendored
@@ -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)
|
||||||
|
|||||||
@@ -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 ()
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user