Page 1 of 1

Compile Error: Policy "CMP0044" is not known

Posted: Sat Sep 24, 2016 4:58 pm
by rcriii
Trying to compile this morning I get the following error from cmake. Any idea what might be wrong?

Code: Select all

~/workspace/freeorion/build$ rm CMakeCache.txt 
rcriii@Maryland:~/workspace/freeorion/build$ cmake ..
CMake Error at CMakeLists.txt:4 (cmake_policy):
  Policy "CMP0044" is not known to this version of CMake.


-- Setting build type to 'Release' as none was specified.
-- Build type CMAKE_BUILD_TYPE set to Release
-- Building tests BUILD_TESTS set to OFF
-- Not building Tests
-- 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: TRUE  
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7") 
-- Found PythonLibs: /usr/lib/i386-linux-gnu/libpython2.7.so (found suitable version "2.7.6", minimum required is "2.7") 
-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   chrono
--   date_time
--   filesystem
--   iostreams
--   locale
--   log
--   regex
--   serialization
--   python
--   signals
--   system
--   thread
-- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.8") 
-- Found Freetype: /usr/lib/i386-linux-gnu/libfreetype.so (found version "2.5.2") 
CMake Error at GG/CMakeLists.txt:4 (cmake_policy):
  Policy "CMP0044" is not known to this version of CMake.


-- Boost version: 1.54.0
-- Found the following Boost libraries:
--   chrono
--   date_time
--   filesystem
--   regex
--   signals
--   system
--   thread
--   log
-- Found JPEG: /usr/lib/i386-linux-gnu/libjpeg.so  
-- Found PNG: /usr/lib/i386-linux-gnu/libpng.so (found version "1.2.50") 
-- Found TIFF: /usr/lib/i386-linux-gnu/libtiff.so (found version "4.0.3") 
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so  
-- Configuring GiGi
-- Configuring GiGiSDL
-- Found SDL2: /usr/lib/i386-linux-gnu/libSDL2main.a;/usr/lib/i386-linux-gnu/libSDL2.so;-lpthread  
-- Found GLEW: /usr/include  
-- Found OpenAL: /usr/lib/i386-linux-gnu/libopenal.so  
-- Found Ogg: /usr/lib/i386-linux-gnu/libogg.so  
-- Found Vorbis: /usr/lib/i386-linux-gnu/libvorbis.so  
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.6") 
-- Found Git: /usr/bin/git (found suitable version "1.9.1", minimum required is "1.9") 
-- Configuring incomplete, errors occurred!
See also "/home/rcriii/workspace/freeorion/build/CMakeFiles/CMakeOutput.log".
See also "/home/rcriii/workspace/freeorion/build/CMakeFiles/CMakeError.log".

Re: Compile Error: Policy "CMP0044" is not known

Posted: Sat Sep 24, 2016 10:01 pm
by adrian_broher
Latest head of master contains a fix for this.

Re: Compile Error: Policy "CMP0044" is not known

Posted: Fri Sep 30, 2016 8:25 pm
by rcriii
Lovely, that fixed it, thanks!