Skip to content

Commit 883211c

Browse files
author
Tor Didriksen
committed
Bug#18374703 COMPILATION ERROR WITH -DENABLE_DEBUG_SYNC=0 AND -DWITH_DEBUG=ON
The combination cmake -DENABLE_DEBUG_SYNC=0 -DWITH_DEBUG=ON fails to build. Fix: Remove option ENABLE_DEBUG_SYNC.
1 parent 0acab3c commit 883211c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -253,8 +253,7 @@ IF (WITH_ASAN)
253253
ENDIF()
254254

255255

256-
OPTION(ENABLE_DEBUG_SYNC "Enable debug sync (debug builds only)" ON)
257-
IF(ENABLE_DEBUG_SYNC)
256+
IF(CMAKE_BUILD_TYPE MATCHES "Debug" OR WITH_DEBUG)
258257
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DENABLED_DEBUG_SYNC")
259258
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DENABLED_DEBUG_SYNC")
260259
ENDIF()

0 commit comments

Comments
 (0)