fix installation of global headers in case the src path contains 'src'

This commit is contained in:
Cyrille Berger 2010-05-08 17:55:55 -04:00
parent 0928c40f68
commit 8f076f6817

View File

@ -1,6 +1,6 @@
file(GLOB Eigen_directory_files "*")
foreach(f ${Eigen_directory_files})
if(NOT f MATCHES ".txt" AND NOT f MATCHES "src")
if(NOT f MATCHES ".txt" AND NOT f MATCHES "${CMAKE_CURRENT_SOURCE_DIR}/src")
list(APPEND Eigen_directory_files_to_install ${f})
endif()
endforeach(f ${Eigen_directory_files})