svn commit: r1919442 - /subversion/branches/cmake/CMakeLists.txt

[email protected]
Newsgroups gmane.comp.version-control.subversion.svn
Message-ID <[email protected]>
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()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.