- More Documentation
- Vulkan Configuration Implementations - Fixed build errors on GCC and Clang
This commit is contained in:
@@ -18,11 +18,22 @@
|
||||
|
||||
# this script handles functionality related to the build process and its info
|
||||
|
||||
# Acquire the build name
|
||||
string(TOLOWER ${CMAKE_BUILD_TYPE} FENNEC_BUILD_NAME)
|
||||
message(STATUS "Build: ${FENNEC_BUILD_NAME}")
|
||||
|
||||
# Add build name to the compile definitions
|
||||
fennec_add_definitions(FENNEC_BUILD_NAME="${FENNEC_BUILD_NAME}")
|
||||
|
||||
# Check if building for debug
|
||||
if(${FENNEC_BUILD_NAME} MATCHES "debug")
|
||||
list(APPEND FENNEC_COMPILE_DEFINITIONS FENNEC_RELEASE=false)
|
||||
fennec_add_definitions(FENNEC_RELEASE=false FENNEC_DEBUG=true)
|
||||
|
||||
# Release with debug info
|
||||
elseif(${FENNEC_BUILD_NAME} MATCHES "relwithdebinfo")
|
||||
fennec_add_definitions(FENNEC_RELEASE=true FENNEC_DEBUG=true)
|
||||
|
||||
# Any others are considered release without debugging
|
||||
else()
|
||||
list(APPEND FENNEC_COMPILE_DEFINITIONS FENNEC_RELEASE=true)
|
||||
endif()
|
||||
fennec_add_definitions(FENNEC_RELEASE=true FENNEC_DEBUG=false)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user