Author: rinrab
Date: Sun Jul 21 13:24:43 2024
New Revision: 1919442

URL: http://svn.apache.org/viewvc?rev=1919442&view=rev
Log:
On the 'cmake' branch: Set definition to 1 if check passes.

* CMakeLists.txt
  (autocheck_include_files,
   autocheck_symbol_exists): Add compile definitions for check result
   with value '1'.

Modified:
    subversion/branches/cmake/CMakeLists.txt

Modified: subversion/branches/cmake/CMakeLists.txt
URL: 
http://svn.apache.org/viewvc/subversion/branches/cmake/CMakeLists.txt?rev=1919442&r1=1919441&r2=1919442&view=diff
==============================================================================
--- subversion/branches/cmake/CMakeLists.txt (original)
+++ subversion/branches/cmake/CMakeLists.txt Sun Jul 21 13:24:43 2024
@@ -264,14 +264,14 @@ include(CheckSymbolExists)
 macro(autocheck_include_files INCLUDE VARIABLE)
   check_include_files(${INCLUDE} ${VARIABLE})
   if(${VARIABLE})
-    add_compile_definitions(${VARIABLE})
+    add_compile_definitions("${VARIABLE}=1")
   endif()
 endmacro()
 
 macro(autocheck_symbol_exists SYMBOL FILE VARIABLE)
   check_symbol_exists(${SYMBOL} ${FILE} ${VARIABLE})
   if(${VARIABLE})
-    add_compile_definitions(${VARIABLE})
+    add_compile_definitions("${VARIABLE}=1")
   endif()
 endmacro()
 


Reply via email to