Compile Error: Policy "CMP0044" is not known

Questions, problems and discussion about compiling FreeOrion.

Moderator: Oberlus

Post Reply
Message
Author
rcriii
Space Krill
Posts: 2
Joined: Fri May 08, 2015 12:11 pm

Compile Error: Policy "CMP0044" is not known

#1 Post 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".
Attachments
CMakeOutput.log
(109.06 KiB) Downloaded 266 times
CMakeError.log
(27.38 KiB) Downloaded 280 times

User avatar
adrian_broher
Programmer
Posts: 1156
Joined: Fri Mar 01, 2013 9:52 am
Location: Germany

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

#2 Post by adrian_broher »

Latest head of master contains a fix for this.
Resident code gremlin
Attached patches are released under GPL 2.0 or later.
Git author: Marcel Metz

rcriii
Space Krill
Posts: 2
Joined: Fri May 08, 2015 12:11 pm

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

#3 Post by rcriii »

Lovely, that fixed it, thanks!

Post Reply