On Wed, Sep 15, 2010 at 04:57:39PM +0200, Stig Bj?rlykke wrote:
> On Wed, Sep 15, 2010 at 12:17 AM, Joerg Mayer <jmayer@xxxxxxxxx> wrote:
> > What's the idea of this patch?
>
> I get a lot of warnings when using CMake 2.8.1 on OSX about using
> relative paths.
> So I tried this fix. Should we do it differently?
Hmm, I also got quite a lot of warnings and fixed them - I don't remember
whether that was the problem you encountered. I also forgot to commit the
fix.
It's attached. Can you please test whether this fixes it for you as well?
Thanks
Joerg
--
Joerg Mayer <jmayer@xxxxxxxxx>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 34126)
+++ CMakeLists.txt (working copy)
@@ -26,6 +26,11 @@
cmake_minimum_required(VERSION 2.6)
set(CMAKE_BACKWARDS_COMPATIBILITY 2.6)
+# Needs to be set after cmake_minimum_required or cmake_policy(VERSION)
+if(COMMAND cmake_policy)
+ cmake_policy(SET CMP0015 NEW)
+endif(COMMAND cmake_policy)
+
# set(PROJECT_VERSION "1.3.4-rc5")
# set(PROJECT_VERSION "1.3.4rc5")
# set(PROJECT_VERSION "1.3.4")