Skip to content

Commit 221adbc

Browse files
committed
Fix warnings on Windows, compiler option -ggdb3 option is nonexistent
1 parent 535160b commit 221adbc

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
@@ -254,8 +254,10 @@ IF (ENABLE_GCOV AND NOT WIN32 AND NOT APPLE)
254254
ENDIF()
255255

256256
MY_CHECK_C_COMPILER_FLAG(-ggdb3 HAVE_GGDB3)
257-
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3")
258-
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb3")
257+
IF(HAVE_GGDB3)
258+
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb3")
259+
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb3")
260+
ENDIF()
259261

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

0 commit comments

Comments
 (0)