[Groonga-commit] groonga/groonga at e94f927 [master] cmake: comment out unset() to support old cmakes

Zurück zum Archiv-Index

susumu.yata null+****@clear*****
Sat May 17 22:05:56 JST 2014


susumu.yata	2014-05-17 22:05:56 +0900 (Sat, 17 May 2014)

  New Revision: e94f9278b35d828374a6eef5ccddd86ccd4a874b
  https://github.com/groonga/groonga/commit/e94f9278b35d828374a6eef5ccddd86ccd4a874b

  Message:
    cmake: comment out unset() to support old cmakes
    
    An old cmake reported an error as follows:
      CMake Error****@CMake*****:103 (unset)
      Unknown CMake command "unset".
    
    Redmine: refs #2442

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+6 -6)
===================================================================
--- CMakeLists.txt    2014-05-16 16:01:09 +0900 (4980f77)
+++ CMakeLists.txt    2014-05-17 22:05:56 +0900 (6a6a479)
@@ -101,7 +101,7 @@ macro(check_cflag flag)
   string(REGEX REPLACE "[-=]" "_" temporary_variable_name ${flag})
   string(TOUPPER "${temporary_variable_name}" temporary_variable_name)
   set(temporary_variable_name "CFLAG${temporary_variable_name}")
-  unset(${temporary_variable_name})
+#  unset(${temporary_variable_name})
   check_c_compiler_flag(${flag} ${temporary_variable_name})
   if(${temporary_variable_name})
     message(STATUS "${checking_message} - available")
@@ -116,7 +116,7 @@ macro(check_cxxflag flag)
   string(REGEX REPLACE "[-=]" "_" temporary_variable_name ${flag})
   string(TOUPPER "${temporary_variable_name}" temporary_variable_name)
   set(temporary_variable_name "CXXFLAG${temporary_variable_name}")
-  unset(${temporary_variable_name})
+#  unset(${temporary_variable_name})
   check_cxx_compiler_flag(${flag} ${temporary_variable_name})
   if(${temporary_variable_name})
     message(STATUS "${checking_message} - available")
@@ -184,21 +184,21 @@ 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})
+#  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})
+#  unset(${output_variable_name})
   check_function_exists(${function} ${output_variable_name})
 endmacro()
 
 macro(ac_check_symbols symbol files)
   string(TOUPPER "${symbol}" output_variable_name)
   set(output_variable_name "HAVE_${output_variable_name}")
-  unset(${output_variable_name})
+#  unset(${output_variable_name})
   check_symbol_exists(${symbol} ${files} ${output_variable_name})
 endmacro()
 
@@ -207,7 +207,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})
+#  unset(${output_variable_name})
   check_library_exists(${library} ${function} "${location}"
     ${output_variable_name})
   if(${output_variable_name})
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index