[CMake] Share build system options across ports
[WebKit-https.git] / Source / WTF / wtf / CMakeLists.txt
index 8b19358..d316eaf 100644 (file)
@@ -193,12 +193,12 @@ SET(WTF_INCLUDE_DIRECTORIES
     "${CMAKE_BINARY_DIR}"
 )
 
-IF (ENABLE_FAST_MALLOC)
+IF (USE_SYSTEM_MALLOC)
+    ADD_DEFINITIONS(-DUSE_SYSTEM_MALLOC=1)
+ELSE ()
     LIST(APPEND WTF_SOURCES
         TCSystemAlloc.cpp
     )
-ELSE ()
-    ADD_DEFINITIONS(-DUSE_SYSTEM_MALLOC=1)
 ENDIF()
 
 WEBKIT_INCLUDE_CONFIG_FILES_IF_EXISTS()