[CMake] Question about find package in Module mode

Fabio Fracassi fabio.fracassi at charite.de
Tue Oct 9 09:46:33 EDT 2012


Hello,

I am using find_package in Module mode for a Library that is also build 
using cmake.
The Library is build in a way that it can be used both from the build 
dir, and from the installed location.

When using find_package it always seems to prefer the build dir version, 
which is somewhat surprising since I expect the default to be the 
(supposably more stable) installed version and that the build dir 
version (that could be broken at any time) needs some explicit interaction.

Is the current state the way it is supposed to be? Can I force CMake to 
do what I want?

Best regards

Fabio

-- 
Dipl.-Inf. Fabio Fracassi
BZMM - Charite & Fraunhofer IPK (bzmm.charite.de)
Augustenburger Platz. 1
13353 Berlin
Tel. +49 (0)30 / 450 555 185



More information about the CMake mailing list