Skip to content

Commit

Permalink
CMake: add dev feature tag when GODOT_DEV_BUILD is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
enetheru committed Nov 26, 2024
1 parent a42b363 commit 389f8b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/godotcpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ function( godotcpp_generate )
godot_arch_map( SYSTEM_ARCH ${CMAKE_SYSTEM_PROCESSOR} )
endif()

# The .dev portion of the name if GODOT_DEV_BUILD is true.
set( DEV "$<$<BOOL:${GODOT_DEV_BUILD}>:.dev>" )

### Define our godot-cpp library targets
foreach ( TARGET_NAME template_debug template_release editor )

Expand Down Expand Up @@ -268,7 +271,7 @@ function( godotcpp_generate )
BUILD_RPATH_USE_ORIGIN ON

PREFIX lib
OUTPUT_NAME "${PROJECT_NAME}.${SYSTEM_NAME}.${TARGET_NAME}.${SYSTEM_ARCH}"
OUTPUT_NAME "${PROJECT_NAME}.${SYSTEM_NAME}.${TARGET_NAME}${DEV}.${SYSTEM_ARCH}"
ARCHIVE_OUTPUT_DIRECTORY "$<1:${CMAKE_BINARY_DIR}/bin>"

# Things that are handy to know for dependent targets
Expand Down

0 comments on commit 389f8b2

Please sign in to comment.