Add build option to turn off 'd' suffix for debug build targets

This commit is contained in:
Francis Hart
2018-08-16 19:25:34 +03:00
committed by Joshua Brookover
parent 85cc3d9716
commit 9e660ee65e
4 changed files with 12 additions and 5 deletions

View File

@@ -22,12 +22,13 @@ endif()
option( BGFX_BUILD_TOOLS "Build bgfx tools." ON )
option( BGFX_BUILD_EXAMPLES "Build bgfx examples." ON )
option( BGFX_INSTALL "Create installation target." ON )
option( BGFX_INSTALL_EXAMPLES "Install examples and their runtimes." OFF )
option( BGFX_INSTALL_EXAMPLES "Install examples and their runtimes." OFF )
option( BGFX_CUSTOM_TARGETS "Include convenience custom targets." ON )
option( BGFX_USE_OVR "Build with OVR support." OFF )
option( BGFX_AMALGAMATED "Amalgamated bgfx build for faster compilation" OFF )
option( BX_AMALGAMATED "Amalgamated bx build for faster compilation" OFF )
option( BGFX_CONFIG_DEBUG "Enables debug configuration on all builds" OFF)
option( BGFX_CONFIG_DEBUG "Enables debug configuration on all builds" OFF )
option( BGFX_USE_DEBUG_SUFFIX "Add 'd' suffix to debug output targets" ON )
if( NOT BX_DIR )
set( BX_DIR "${CMAKE_CURRENT_SOURCE_DIR}/bx" CACHE STRING "Location of bx." )

View File

@@ -97,4 +97,6 @@ endif()
set_target_properties( bgfx PROPERTIES FOLDER "bgfx" )
# Export debug build as "bgfxd"
set_target_properties( bgfx PROPERTIES OUTPUT_NAME_DEBUG "bgfxd" )
if( BGFX_USE_DEBUG_SUFFIX )
set_target_properties( bgfx PROPERTIES OUTPUT_NAME_DEBUG "bgfxd" )
endif()

View File

@@ -39,4 +39,6 @@ target_link_libraries( bimg bx edtaa3 etc1 etc2 iqa squish nvtt pvrtc )
set_target_properties( bimg PROPERTIES FOLDER "bgfx" )
# Export debug build as "bimgd"
set_target_properties( bimg PROPERTIES OUTPUT_NAME_DEBUG "bimgd" )
if( BGFX_USE_DEBUG_SUFFIX )
set_target_properties( bimg PROPERTIES OUTPUT_NAME_DEBUG "bimgd" )
endif()

View File

@@ -75,4 +75,6 @@ endif()
set_target_properties( bx PROPERTIES FOLDER "bgfx" )
# Export debug build as "bxd"
set_target_properties( bx PROPERTIES OUTPUT_NAME_DEBUG "bxd" )
if( BGFX_USE_DEBUG_SUFFIX )
set_target_properties( bx PROPERTIES OUTPUT_NAME_DEBUG "bxd" )
endif()