[cmake-developers] [CMake 0014792]: find_package behavior affected by tcc

Mantis Bug Tracker mantis at public.kitware.com
Fri Mar 7 03:28:28 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=14792 
====================================================================== 
Reported By:                Mathieu Malaterre
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14792
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-03-07 03:28 EST
Last Modified:              2014-03-07 03:28 EST
====================================================================== 
Summary:                    find_package behavior affected by tcc
Description: 
Steps:

$ cat ../CMakeLists.txt 
cmake_minimum_required(VERSION 2.8)
project(tcc C)
find_package(ZLIB REQUIRED)
$ export CC=/usr/bin/tcc
$ cmake ..
-- The C compiler identification is TinyCC
-- Check for working C compiler: /usr/bin/tcc
-- Check for working C compiler: /usr/bin/tcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error at
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.7")
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315
(_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindZLIB.cmake:85
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!


However:
$ rm -rf *
$ unset CC
$ cmake ..
-- The C compiler identification is GNU 4.7.2
-- 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
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.7") 
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/dd/bin

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-03-07 03:28 Mathieu MalaterreNew Issue                                    
======================================================================



More information about the cmake-developers mailing list