mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
CMake: fix missing Coverage config in multi-config generators
This commit is contained in:
parent
00305bccae
commit
f56f06b65c
@ -40,7 +40,6 @@ endif()
|
||||
|
||||
if(IS_MULTICONFIG)
|
||||
message(STATUS "Using multi-configuration generator")
|
||||
set(CMAKE_CONFIGURATION_TYPES ${_configs})
|
||||
else()
|
||||
# Set the default CMAKE_BUILD_TYPE before calling project().
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
|
@ -22,6 +22,17 @@ if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
set(IS_FREEBSD 1)
|
||||
endif()
|
||||
|
||||
# Define the type of build we are setting up.
|
||||
|
||||
set(_configs Standard Release RelWithDebInfo Debug MinSizeRel)
|
||||
if(DEFINED CMAKE_CXX_FLAGS_COVERAGE)
|
||||
list(APPEND _configs Coverage)
|
||||
endif()
|
||||
|
||||
if(IS_MULTICONFIG)
|
||||
set(CMAKE_CONFIGURATION_TYPES ${_configs})
|
||||
endif()
|
||||
|
||||
set(PER_CONFIG_OPTIONS)
|
||||
|
||||
# Are we building with static or dynamic linking?
|
||||
|
Loading…
x
Reference in New Issue
Block a user