Issue #281 (bdwgc).
* CMakeLists.txt (add_definitions): Define _CRT_SECURE_NO_DEPRECATE
only if WIN32.
option(enable_checksums "Report erroneously cleared dirty bits" OFF)
option(enable_handle_fork "Attempt to ensure a usable collector after fork()" ON)
-add_definitions("-D_CRT_SECURE_NO_DEPRECATE")
add_definitions("-DALL_INTERIOR_POINTERS -DNO_EXECUTE_PERMISSION")
if (APPLE)
set(CMAKE_OSX_ARCHITECTURES "ppc;i386;x86_64"
CACHE STRING "Build architectures for Mac OS X" FORCE)
endif()
-endif(APPLE)
+elseif (WIN32)
+ add_definitions("-D_CRT_SECURE_NO_DEPRECATE")
+endif()
#LIBATOMIC #TODO
#ADD_LIBRARY(atomic_ops STATIC )