[Groonga-commit] groonga/groonga at 17b153c [master] cmake: reset output variable before checking

Back to archive index

Kouhei Sutou null+****@clear*****
Sun May 19 19:56:19 JST 2013


Kouhei Sutou	2013-05-19 19:56:19 +0900 (Sun, 19 May 2013)

  New Revision: 17b153cfb763eeadf47fbedbe0ba46a01a8dc335
  https://github.com/groonga/groonga/commit/17b153cfb763eeadf47fbedbe0ba46a01a8dc335

  Message:
    cmake: reset output variable before checking

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+3 -0)
===================================================================
--- CMakeLists.txt    2013-05-19 18:38:07 +0900 (8c50f97)
+++ CMakeLists.txt    2013-05-19 19:56:19 +0900 (f408060)
@@ -104,12 +104,14 @@ macro(ac_check_headers header)
   string(REGEX REPLACE "[/.]" "_" output_variable_name ${header})
   string(TOUPPER "${output_variable_name}" output_variable_name)
   set(output_variable_name "HAVE_${output_variable_name}")
+  unset(${output_variable_name})
   check_include_file(${header} ${output_variable_name})
 endmacro()
 
 macro(ac_check_funcs function)
   string(TOUPPER "${function}" output_variable_name)
   set(output_variable_name "HAVE_${output_variable_name}")
+  unset(${output_variable_name})
   check_function_exists(${function} ${output_variable_name})
 endmacro()
 
@@ -118,6 +120,7 @@ macro(ac_check_lib library function)
   string(TOUPPER "${output_variable_base_name}" output_variable_base_name)
   set(output_variable_name "HAVE_LIB${output_variable_base_name}")
   set(location "${ARG2}")
+  unset(${output_variable_name})
   check_library_exists(${library} ${function} "${location}"
     ${output_variable_name})
   if(${output_variable_name})
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index