]> granicus.if.org Git - gc/commitdiff
Fix 'unexpected newline after ELSE' CMake error
authorIvan Maidanski <ivmai@mail.ru>
Fri, 13 Apr 2018 16:29:45 +0000 (19:29 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 13 Apr 2018 16:29:45 +0000 (19:29 +0300)
(fix of commit 32479d59c)

* CMakeLists.txt [enable_redirect_malloc]: Fix ELSE directive syntax.

CMakeLists.txt

index 60e92ef94ae264549e1993207803af74e67e80ff..e79a4c05f8c367aa5ccfaaca4a0f6d36e3a5c1bd 100644 (file)
@@ -186,7 +186,7 @@ IF(enable_redirect_malloc)
         ADD_DEFINITIONS("-DREDIRECT_MALLOC=GC_debug_malloc_replacement")
         ADD_DEFINITIONS("-DREDIRECT_REALLOC=GC_debug_realloc_replacement")
         ADD_DEFINITIONS("-DREDIRECT_FREE=GC_debug_free")
-    ELSE
+    ELSE(enable_gc_debug)
         ADD_DEFINITIONS("-DREDIRECT_MALLOC=GC_malloc")
     ENDIF(enable_gc_debug)
     ADD_DEFINITIONS("-DGC_USE_DLOPEN_WRAP")