[CMake] Unknown CMake command "macro_ensure_version"

Douglas Houston dhouston at staffmail.ed.ac.uk
Sun May 1 05:30:04 EDT 2016


Hi,

I am trying to use Cmake to compile a program on Scientific Linux  
release 6.7, and I get the following error with both the precompiled  
binary and my own compiled version of Cmake:



[root at drhwks]# ~/cmake-3.5.2-Linux-x86_64/bin/cmake  ~/openbabel-2.3.2
CMake Error at CMakeLists.txt:20 (include):
   include could not find load file:

     MacroEnsureVersion


-- Using included inchi library.
-- Could NOT find wxWidgets (missing:  wxWidgets_LIBRARIES  
wxWidgets_INCLUDE_DI
RS)
CMake Error at CMakeLists.txt:231 (macro_ensure_version):
   Unknown CMake command "macro_ensure_version".


-- Configuring incomplete, errors occurred!
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeOutput.log".
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeError.log".
[root at drhwks build]# ls -lht | head
total 24K
-rw-r--r--. 1 root root  17K May  1 10:13 CMakeCache.txt
drwxr-xr-x. 5 root root 4.0K Apr 30 09:09 CMakeFiles
[root at drhwks build]# rm CMake
CMakeCache.txt  CMakeFiles/
[root at drhwks build]# rm -rf CMake*
[root at drhwks build]# ~/cmake-3.5.2-Linux-x86_64/bin/cmake  ~/openbabel-2.3.2
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:20 (include):
   include could not find load file:

     MacroEnsureVersion


-- Using included inchi library.
-- Found LibXml2: /usr/lib64/libxml2.so (found version "2.7.6")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- Could NOT find wxWidgets (missing:  wxWidgets_LIBRARIES  
wxWidgets_INCLUDE_DI
RS)
-- Looking for conio.h
-- Looking for conio.h - not found
-- Looking for sys/time.h
-- Looking for sys/time.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for strings.h
-- Looking for strings.h - found
-- Looking for rpc/xdr.h
-- Looking for rpc/xdr.h - found
-- Looking for regex.h
-- Looking for regex.h - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for rint
-- Looking for rint - not found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for sranddev
-- Looking for sranddev - not found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of clock_t
-- Check size of clock_t - done
CMake Error at CMakeLists.txt:231 (macro_ensure_version):
   Unknown CMake command "macro_ensure_version".


-- Configuring incomplete, errors occurred!
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeOutput.log".
See also "/root/openbabel-2.3.2/build/CMakeFiles/CMakeError.log".



Can anyone please help?

Regards,
Douglas Houston



-- 
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.




More information about the CMake mailing list