<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Gtest on Blog GoHugo de Fredô : Linux, Proxmox, IA, Trail, Course, Randonnée, Gravel, Ski de Randonnée</title>
    <link>https://move.cyber-neurones.org/tags/gtest/</link>
    <description>Recent content in Gtest on Blog GoHugo de Fredô : Linux, Proxmox, IA, Trail, Course, Randonnée, Gravel, Ski de Randonnée</description>
    <generator>Hugo</generator>
    <language>fr</language>
    <lastBuildDate>Wed, 19 Dec 2018 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://move.cyber-neurones.org/tags/gtest/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Google Test under Fedora 17 64b : No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()</title>
      <link>https://move.cyber-neurones.org/post/2018/12/2018-12-19-google-test-under-fedora-17-64b-no-version-specified-for-write_basic_config_version_file/</link>
      <pubDate>Wed, 19 Dec 2018 00:00:00 +0000</pubDate>
      <guid>https://move.cyber-neurones.org/post/2018/12/2018-12-19-google-test-under-fedora-17-64b-no-version-specified-for-write_basic_config_version_file/</guid>
      <description>&lt;p&gt;J&amp;rsquo;ai donc voulu faire l&amp;rsquo;installation de gtest : &lt;a href=&#34;https://github.com/google/googletest&#34;&gt;https://github.com/google/googletest&lt;/a&gt; sur un serveur en Fédora 17 mais sans succès.&lt;/p&gt;&#xA;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# wget https://github.com/google/googletest/archive/master.zip # unzip master.zip # cd googletest-master/# mkdir mybuild# cat ../CMakeLists.txtcmake_minimum_required(VERSION 2.8.8) if (CMAKE_VERSION VERSION_LESS &amp;#34;3.1&amp;#34;)  add_definitions(-std=c++11)else()  set(CMAKE_CXX_STANDARD 11)  set(CMAKE_CXX_STANDARD_REQUIRED ON)  set(CMAKE_CXX_EXTENSIONS OFF)endif() if (POLICY CMP0048)  cmake_policy(SET CMP0048 NEW)endif (POLICY CMP0048) project(googletest-distribution)set(GOOGLETEST_VERSION 1.9.0) enable_testing() include(CMakeDependentOption)include(GNUInstallDirs) #Note that googlemock target already builds googletestoption(BUILD_GMOCK &amp;#34;Builds the googlemock subproject&amp;#34; ON)option(INSTALL_GTEST &amp;#34;Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)&amp;#34; ON) if(BUILD_GMOCK)  add_subdirectory( googlemock )else()  add_subdirectory( googletest )endif() # uname -aLinux fedora17-64b 3.3.4-5.fc17.x86_64 #1 SMP Mon May 7 17:29:34 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux # rpm -qa | grep &amp;#34;cmake&amp;#34;cmake-2.8.9-1.fc17.x86_64 # cmake -G&amp;#34;Unix Makefiles&amp;#34; ..-- The C compiler identification is GNU 4.7.2-- The CXX compiler identification is GNU 4.7.2-- Check for working C compiler: /bin/gcc-- Check for working C compiler: /bin/gcc -- works-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working CXX compiler: /bin/c++-- Check for working CXX compiler: /bin/c++ -- works-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Found PythonInterp: /bin/python (found version &amp;#34;2.7.3&amp;#34;)-- Looking for include file pthread.h-- Looking for include file pthread.h - found-- Looking for pthread_create-- Looking for pthread_create - not found.-- Looking for pthread_create in pthreads-- Looking for pthread_create in pthreads - not found-- Looking for pthread_create in pthread-- Looking for pthread_create in pthread - found-- Found Threads: TRUECMake Error at /usr/share/cmake/Modules/WriteBasicConfigVersionFile.cmake:39 (message):  No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()Call Stack (most recent call first):  /usr/share/cmake/Modules/CMakePackageConfigHelpers.cmake:152 (write_basic_config_version_file)  googletest/CMakeLists.txt:96 (write_basic_package_version_file)  -- Configuring incomplete, errors occurred!# cat ../CMakeLists.txt cmake_minimum_required(VERSION 2.8.8) if (CMAKE_VERSION VERSION_LESS &amp;#34;3.1&amp;#34;)  add_definitions(-std=c++11)else()  set(CMAKE_CXX_STANDARD 11)  set(CMAKE_CXX_STANDARD_REQUIRED ON)  set(CMAKE_CXX_EXTENSIONS OFF)endif() if (POLICY CMP0048)  cmake_policy(SET CMP0048 NEW)endif (POLICY CMP0048) project(googletest-distribution)#set(CMAKE_PROJECT_VERSION_SET_BY_PROJECT_COMMAND FALSE)set(GOOGLETEST_VERSION 1.9.0) if(&amp;#34;${CVF_VERSION}&amp;#34; STREQUAL &amp;#34;&amp;#34;)    if (&amp;#34;${GOOGLETEST_VERSION}&amp;#34; STREQUAL &amp;#34;&amp;#34;)      message(FATAL_ERROR &amp;#34;No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()&amp;#34;)    else()      set(CVF_VERSION &amp;#34;${GOOGLETEST_VERSION}&amp;#34;)    endif()endif() if(&amp;#34;${CVF_VERSION}&amp;#34; STREQUAL &amp;#34;&amp;#34;)    message(FATAL_ERROR &amp;#34;No VERSION specified for WRITE_BASIC_CONFIG_VERSION_FILE()&amp;#34;)else() endif() enable_testing() include(CMakeDependentOption)include(GNUInstallDirs) #Note that googlemock target already builds googletestoption(BUILD_GMOCK &amp;#34;Builds the googlemock subproject&amp;#34; ON)option(INSTALL_GTEST &amp;#34;Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)&amp;#34; ON) if(BUILD_GMOCK)  add_subdirectory( googlemock )else()  add_subdirectory( googletest )endif()&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;Dans le fichier la version minimum semble être 2.8.8 et j&amp;rsquo;ai la version 2.8.9-1. J&amp;rsquo;ai essayé de forcer la variable mais sans succès. &lt;/p&gt;</description>
    </item>
  </channel>
</rss>
