We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0acab3c commit 883211cCopy full SHA for 883211c
CMakeLists.txt
@@ -1,4 +1,4 @@
1
-# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
2
#
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
@@ -253,8 +253,7 @@ IF (WITH_ASAN)
253
ENDIF()
254
255
256
-OPTION(ENABLE_DEBUG_SYNC "Enable debug sync (debug builds only)" ON)
257
-IF(ENABLE_DEBUG_SYNC)
+IF(CMAKE_BUILD_TYPE MATCHES "Debug" OR WITH_DEBUG)
258
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DENABLED_DEBUG_SYNC")
259
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DENABLED_DEBUG_SYNC")
260
0 commit comments