This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Cmake file compatibility with svn

Tags: None
(comma "," separated)
isluser
Registered Member
Posts
10
Karma
0

Cmake file compatibility with svn

Tue Oct 19, 2010 5:49 pm
I'm currently using svn to keep track of the changes in our projects, including which version of eigen3 is used.

We had to modify 2 cmake files to make it work.
Eigen\CMakeList.txt and Eigen\src\CMakeList.txt

The change goes like this for Eigen\CMakeList.txt
foreach(f ${Eigen_directory_files})
if(NOT f MATCHES ".txt" AND NOT f MATCHES ".svn" AND NOT f MATCHES "${CMAKE_CURRENT_SOURCE_DIR}/src")
list(APPEND Eigen_directory_files_to_install ${f})
endif()
endforeach(f ${Eigen_directory_files})

Eigen\src\CMakeList.txt is the same change.

Basically, it works by excluding the .svn directory of the cmake generation process.

I'd like to know how I can submit this improvement.

Thank you,
User avatar
bjacob
Registered Member
Posts
658
Karma
3
We need a more general solution here so we don't have to special-case every VCS.

How about excluding all files/directories starting with '.' ? (i.e. unix hidden files) If you make a patch doing that I think we can accept it.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
isluser
Registered Member
Posts
10
Karma
0
I personnally don't see a problem on my side. I'll test it to make sure with.

There is already a ".txt" being filtered.
User avatar
bjacob
Registered Member
Posts
658
Karma
3
MATCHES means contains, not starts-with.

The .txt here is meant to match CMakeLists.txt

You need to find a way in CMake to test if a string starts with '.' . This should be explained in the cmake manual page, at the 'string' command.


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!
isluser
Registered Member
Posts
10
Karma
0
The regex string to use is "[.].+".

It remove anything that start with "." with any character following.
isluser
Registered Member
Posts
10
Karma
0
So, how do I submit the new code?

Thank you,
jitseniesen
Registered Member
Posts
204
Karma
2
Preferably by generating a patch as described on http://eigen.tuxfamily.org/index.php?title=Mercurial and then submitting it to our Bugzilla issue tracker: http://eigen.tuxfamily.org/bz .
isluser
Registered Member
Posts
10
Karma
0
Patch is submitted in the bug 90 in bugzilla.

Can someone confirm that all is in order procedure wise?
It is my first try.

Thank you.
User avatar
bjacob
Registered Member
Posts
658
Karma
3
(Discussing continued over at the bug)


Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list!


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rockscient