[cmake-developers] [CMake 0013280]: setting CMAKE_C_COMPILER and CMAKE_CXX_COMPILER breaks find_package
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jun 7 15:44:25 EDT 2012
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=13280
======================================================================
Reported By: Alex Herrmann
Assigned To:
======================================================================
Project: CMake
Issue ID: 13280
Category: CMake
Reproducibility: always
Severity: major
Priority: low
Status: new
======================================================================
Date Submitted: 2012-06-07 15:44 EDT
Last Modified: 2012-06-07 15:44 EDT
======================================================================
Summary: setting CMAKE_C_COMPILER and CMAKE_CXX_COMPILER
breaks find_package
Description:
Hello, I just built gcc-4.7 in my /opt/ directory, and I would like to cmake to
compile using those binaries. However, whenever I specify the C and CXX compiler
with -D or set() commands, it always complains about it not being able to find
anything.
Steps to Reproduce:
Specify CMAKE_C_COMPILER and CMAKE_CXX_COMPILER, and try to find() something.
More specifically for me include(FindPNG) or include(FindJPEG), nothing like
this works.
Additional Information:
I have a feeling this isn't a bug, and I've tried setting just about variable I
can think to right this, but until this is fixed, my software is much less
portable.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2012-06-07 15:44 Alex Herrmann New Issue
======================================================================
More information about the cmake-developers
mailing list