[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:43:26 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=aa93afd
The following commit has been merged in the master branch:
commit aa93afda604b3f541a35440882936c363e3e85bd
Author: Robin Mills <robin at clanmills.com>
Date: Wed Oct 3 00:41:10 2012 +0000
Issue#722. SVN:2890 http://dev.exiv2.org/projects/exiv2/repository/revisions/2890
---
CMakeLists.txt | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 61cde90..cf8afc6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,11 +17,8 @@ CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
#
# Halt processing and ask the user to fix this.
# Remedy $ cd src; make clean -or- $ rm -rf src/exv_conf.h
-macro(trouble M)
- message(FATAL_ERROR ${M})
-endmacro(trouble)
if( EXISTS ${CMAKE_SOURCE_DIR}/src/exv_conf.h )
- trouble("${CMAKE_SOURCE_DIR}/src/exv_conf.h exists. Please remove file and re-run cmake!")
+ message(FATAL_ERROR "${CMAKE_SOURCE_DIR}/src/exv_conf.h exists. Please remove file and re-run cmake!")
endif()
##
@@ -166,5 +163,19 @@ IF( EXIV2_ENABLE_BUILD_PO )
ADD_SUBDIRECTORY( po )
ENDIF( EXIV2_ENABLE_BUILD_PO )
+IF( NOT MSVC )
+ # Issue #722: out of source builds compiled against standard include files such as /usr/local/lib/include/exiv2
+ # do not use CREATE_SYMLINK or CMAKE_CAN_SYMLINK as they don't work on CYGWIN
+ EXECUTE_PROCESS( WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMAND ln -s ${CMAKE_CURRENT_SOURCE_DIR}/src exiv2)
+ IF( EXIV2_ENABLE_BUILD_SAMPLES )
+ EXECUTE_PROCESS( WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/samples COMMAND ln -s ${CMAKE_CURRENT_SOURCE_DIR}/src exiv2)
+ ENDIF( EXIV2_ENABLE_BUILD_SAMPLES )
+
+ IF( EXIV2_ENABLE_BUILD_PO )
+ EXECUTE_PROCESS( WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/po COMMAND ln -s ${CMAKE_CURRENT_SOURCE_DIR}/src exiv2)
+ ENDIF( EXIV2_ENABLE_BUILD_PO )
+ENDIF()
+
+
# That's all Folks!
##
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list