mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-03 18:09:13 +03:00
CMake: Add GODOTCPP_SUFFIX_GENEX variable
This is the same as GODOTCPP_SUFFIX but without the leading '.'
GODOTCPP_SUFFIX is then based on the above.
(cherry picked from commit b64b941adf)
This commit is contained in:
committed by
David Snopek
parent
b842dc9696
commit
ad484bcdbb
@@ -319,11 +319,11 @@ function(godotcpp_generate)
|
|||||||
set(DEBUG_FEATURES "$<NOT:$<STREQUAL:${GODOTCPP_TARGET},template_release>>")
|
set(DEBUG_FEATURES "$<NOT:$<STREQUAL:${GODOTCPP_TARGET},template_release>>")
|
||||||
set(HOT_RELOAD "$<IF:${HOT_RELOAD-UNSET},${DEBUG_FEATURES},$<BOOL:${GODOTCPP_USE_HOT_RELOAD}>>")
|
set(HOT_RELOAD "$<IF:${HOT_RELOAD-UNSET},${DEBUG_FEATURES},$<BOOL:${GODOTCPP_USE_HOT_RELOAD}>>")
|
||||||
|
|
||||||
# Suffix
|
# Suffix Generator Expression
|
||||||
string(
|
string(
|
||||||
CONCAT
|
CONCAT
|
||||||
GODOTCPP_SUFFIX
|
GODOTCPP_SUFFIX_GENEX
|
||||||
"$<1:.${SYSTEM_NAME}>"
|
"$<1:${SYSTEM_NAME}>"
|
||||||
"$<1:.${GODOTCPP_TARGET}>"
|
"$<1:.${GODOTCPP_TARGET}>"
|
||||||
"$<${IS_DEV_BUILD}:.dev>"
|
"$<${IS_DEV_BUILD}:.dev>"
|
||||||
"$<$<STREQUAL:${GODOTCPP_PRECISION},double>:.double>"
|
"$<$<STREQUAL:${GODOTCPP_PRECISION},double>:.double>"
|
||||||
@@ -331,6 +331,8 @@ function(godotcpp_generate)
|
|||||||
# TODO IOS_SIMULATOR
|
# TODO IOS_SIMULATOR
|
||||||
"$<$<NOT:${THREADS_ENABLED}>:.nothreads>"
|
"$<$<NOT:${THREADS_ENABLED}>:.nothreads>"
|
||||||
)
|
)
|
||||||
|
# The same as above, but with a leading '.' to maintain backwards compatibility.
|
||||||
|
set(GODOTCPP_SUFFIX ".${GODOTCPP_SUFFIX_GENEX}")
|
||||||
|
|
||||||
# the godot-cpp.* library targets
|
# the godot-cpp.* library targets
|
||||||
add_library(godot-cpp STATIC)
|
add_library(godot-cpp STATIC)
|
||||||
@@ -375,6 +377,7 @@ function(godotcpp_generate)
|
|||||||
GODOTCPP_ARCH "${ARCH_NAME}"
|
GODOTCPP_ARCH "${ARCH_NAME}"
|
||||||
GODOTCPP_PRECISION "${GODOTCPP_PRECISION}"
|
GODOTCPP_PRECISION "${GODOTCPP_PRECISION}"
|
||||||
GODOTCPP_SUFFIX "${GODOTCPP_SUFFIX}"
|
GODOTCPP_SUFFIX "${GODOTCPP_SUFFIX}"
|
||||||
|
GODOTCPP_SUFFIX_GENEX "${GODOTCPP_SUFFIX_GENEX}"
|
||||||
|
|
||||||
# Some IDE's respect this property to logically group targets
|
# Some IDE's respect this property to logically group targets
|
||||||
FOLDER "godot-cpp"
|
FOLDER "godot-cpp"
|
||||||
|
|||||||
Reference in New Issue
Block a user