- More Documentation
- Vulkan Configuration Implementations - Fixed build errors on GCC and Clang
This commit is contained in:
@@ -18,13 +18,27 @@
|
||||
|
||||
# this script finds the compiler being used
|
||||
|
||||
# Send a message letting us know the compiler and its version
|
||||
message(STATUS "Compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
|
||||
# Add definitions for the compiler
|
||||
fennec_add_definitions(
|
||||
FENNEC_LONG_COMPILER_NAME="${CMAKE_CXX_COMPILER_ID} ${CMAKE_SYSTEM_NAME} ${CMAKE_SYSTEM_PROCESSOR}"
|
||||
)
|
||||
|
||||
# GCC
|
||||
if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
|
||||
set(FENNEC_COMPILER "GCC")
|
||||
include("${FENNEC_SOURCE_DIR}/cmake/gcc.cmake")
|
||||
set(FENNEC_COMPILER "GCC")
|
||||
include("${FENNEC_SOURCE_DIR}/cmake/gcc.cmake")
|
||||
endif()
|
||||
|
||||
# Clang
|
||||
if(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
|
||||
set(FENNEC_COMPILER "Clang")
|
||||
include("${FENNEC_SOURCE_DIR}/cmake/clang.cmake")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
# TODO: MSVC & MinGW
|
||||
|
||||
|
||||
Reference in New Issue
Block a user