File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -22,25 +22,20 @@ file(GLOB_RECURSE all_sources
2222set (vtk_and_opengl_sources "" )
2323foreach (f IN LISTS all_sources)
2424 string (TOLOWER "${f} " f_lower)
25- if (f_lower MATCHES "vtk" )
25+ if (f_lower MATCHES "vtk[^/]*$ " )
2626 list (APPEND vtk_and_opengl_sources "${f} " )
2727 endif ()
28- if (f_lower MATCHES "opengl" )
28+ if (f_lower MATCHES "opengl[^/]*$ " )
2929 list (APPEND vtk_and_opengl_sources "${f} " )
3030 endif ()
3131endforeach ()
3232
3333foreach (f IN LISTS vtk_and_opengl_sources)
34+ message (STATUS "Removing vtk/opengl source: ${f} " )
3435 file (REMOVE "${f} " )
3536endforeach ()
3637
3738# ----- Modify OCP.cpp -----
38- file (GLOB SOURCE_CONTENTS "${REAL_SOURCE_DIR} /*" )
39- message (STATUS "Contents of ${REAL_SOURCE_DIR} :" )
40- foreach (ITEM ${SOURCE_CONTENTS} )
41- message (STATUS " ${ITEM} " )
42- endforeach ()
43-
4439set (ocp_cpp "${REAL_SOURCE_DIR} /OCP.cpp" )
4540file (READ "${ocp_cpp} " content )
4641set (content_old "${content} " )
You can’t perform that action at this time.
0 commit comments