forked from OpenMS/OpenMS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstl_debug.cmake
More file actions
22 lines (20 loc) · 884 Bytes
/
stl_debug.cmake
File metadata and controls
22 lines (20 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
# SPDX-License-Identifier: BSD-3-Clause
#
# --------------------------------------------------------------------------
# $Maintainer: Stephan Aiche, Chris Bielow $
# $Authors: Andreas Bertsch, Chris Bielow, Stephan Aiche $
# --------------------------------------------------------------------------
#------------------------------------------------------------------------------
# This cmake file enables the STL debug mode
if (CMAKE_COMPILER_IS_GNUCXX)
if ("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
# add compiler flag
add_compile_options(/D_GLIBCXX_DEBUG)
message(STATUS "STL debug mode: ${STL_DEBUG}")
else()
message(WARNING "STL debug mode is supported for OpenMS debug mode only")
endif()
else()
message(WARNING "STL debug mode is supported for compiler GCC only")
endif()