summaryrefslogtreecommitdiffstats
path: root/src/armadillo-1-nocmakeconfigfiles.patch
blob: daf6be5ae070a0a2910f7a8e11784685babd18da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From f33262c29c253608f57e91af0e96bdb7bfa3cc00 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Sun, 19 Oct 2014 12:09:55 -0400
Subject: [PATCH] Don't export package

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
---
 CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d0f2180..5ecba48 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -402,7 +402,9 @@ install(TARGETS armadillo EXPORT ArmadilloLibraryDepends
   
 # Export the package for use from the build-tree
 # (this registers the build-tree with a global CMake-registry)
-export(PACKAGE armadillo)
+if(CMAKE_VERSION VERSION_GREATER "2.7" AND NOT (MINGW AND CMAKE_TOOLCHAIN_FILE))
+  export(PACKAGE armadillo)
+endif()
 
 ## LOCAL FILES
 # Create ArmadilloConfig.cmake file for the use from the build tree
-- 
1.9.1