Skip to content

Commit e8ec788

Browse files
author
Yeicor
committed
Fix
1 parent 7ac097e commit e8ec788

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

cadquery-ocp-novtk/patch_OCP.cmake

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,20 @@ file(GLOB_RECURSE all_sources
2222
set(vtk_and_opengl_sources "")
2323
foreach(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()
3131
endforeach()
3232

3333
foreach(f IN LISTS vtk_and_opengl_sources)
34+
message(STATUS "Removing vtk/opengl source: ${f}")
3435
file(REMOVE "${f}")
3536
endforeach()
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-
4439
set(ocp_cpp "${REAL_SOURCE_DIR}/OCP.cpp")
4540
file(READ "${ocp_cpp}" content)
4641
set(content_old "${content}")

0 commit comments

Comments
 (0)