[shark] 10/79: DIRECTORY replaced by PATH as it is unknown prior cmake 2.8.12 which does not exist on travis

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Nov 26 15:39:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository shark.

commit 140043f172a9b187d1cf696d6f7afdee5dfbe6db
Author: Oswin <oswin.krause at di.ku.dk>
Date:   Wed Oct 28 09:13:04 2015 +0100

    DIRECTORY replaced by PATH as it is unknown prior cmake 2.8.12 which does not exist on travis
---
 src/CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 206e3d2..a875fc1 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -5,7 +5,7 @@ file(GLOB_RECURSE SHARK_HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ../include/
 # Group the source for MSVC
 foreach(FILE ${SHARK_SRCS}) 
     # Get the directory of the source file
-    get_filename_component(PARENT_DIR "${FILE}" DIRECTORY)
+    get_filename_component(PARENT_DIR "${FILE}" PATH)
     # Make sure we are using windows slashes
     string(REPLACE "/" "\\" GROUP "${PARENT_DIR}")
 
@@ -16,7 +16,7 @@ endforeach()
 #Also Group the Header Files
 foreach(FILE ${SHARK_HEADERS}) 
     # Get the directory of the source file
-    get_filename_component(PARENT_DIR "${FILE}" DIRECTORY)
+    get_filename_component(PARENT_DIR "${FILE}" PATH)
 
 	string(REPLACE "../" "" GROUP "${PARENT_DIR}")
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/shark.git



More information about the debian-science-commits mailing list