libt2n-git Archives

Subject: C++ inter-process communication library branch, cmake-conversion, updated. v0.6-17-gf113155

From: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 9 Sep 2011 17:06:00 +0200 (CEST)
The branch, cmake-conversion has been updated
       via  f113155a77e2ad0a2321537dbe4ad1af40bf80d2 (commit)
      from  359ca085a54edbe4a2d0b1450160ff83256e2116 (commit)


- Log -----------------------------------------------------------------
commit f113155a77e2ad0a2321537dbe4ad1af40bf80d2
Author: Thomas Jarosch <thomas.jarosch@xxxxxxxxxxxxx>
Date:   Fri Sep 9 17:05:43 2011 +0200

    Fix file extension matching for filenames with multiple dots

-----------------------------------------------------------------------

Summary of changes:
 codegen/Libt2n.cmake |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/codegen/Libt2n.cmake b/codegen/Libt2n.cmake
index fd07cd3..3bed5f8 100644
--- a/codegen/Libt2n.cmake
+++ b/codegen/Libt2n.cmake
@@ -53,7 +53,8 @@ function(setup_libt2n)
         set(T2N_GCCXML_COMMANDS "")
         foreach(T2NFILE ${${CMDGROUP}_GROUP})
             get_filename_component(FILE_NAME ${T2NFILE} NAME)
-            get_filename_component(FILE_EXT ${T2NFILE} EXT)
+            # get_filename_component(FILE_EXT ${T2NFILE} EXT)   <-- Doesn't 
work for filenames with multiple dots
+            string(REGEX MATCH "(\\.[^\\.]*)$" FILE_EXT ${T2NFILE})
             if(NOT FILE_EXT STREQUAL ".cpp")
                 message(FATAL_ERROR "   Error: ${FILE_NAME} is not a .cpp file 
based on its filename extension!")
             endif()


hooks/post-receive
-- 
C++ inter-process communication library

--
libt2n-git - see http://www.intra2net.com/en/developer/libt2n for details.
To unsubscribe send a mail to libt2n-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • C++ inter-process communication library branch, cmake-conversion, updated. v0.6-17-gf113155, libt2n-git <=