Skip to content

Commit 3390291

Browse files
author
Sergei Golubchik
committed
typo fixed: only use -ggdb3 when it's supported by the compiler
1 parent 16e43df commit 3390291

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,10 @@ IF (ENABLE_GCOV AND NOT WIN32 AND NOT APPLE)
267267
ENDIF()
268268

269269
MY_CHECK_C_COMPILER_FLAG(-ggdb3 HAVE_GGDB3)
270-
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3")
271-
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb3")
270+
IF(HAVE_GGDB3)
271+
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3")
272+
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb3")
273+
ENDIF(HAVE_GGDB3)
272274

273275
OPTION(ENABLED_LOCAL_INFILE
274276
"If we should should enable LOAD DATA LOCAL by default" ${IF_WIN})

0 commit comments

Comments
 (0)