Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

Commit 5535b28

Browse files
authored
Display VTKM_DIR for ccmake users (#215)
Calling `find_library` automatically populates VTKM_DIR if possible, but mostly make it appear into ccmake. Useful for beginners
1 parent 9b17040 commit 5535b28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmake/Setup3rdParty.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,6 @@ if(VTKM_DIR)
7171
################################
7272
include(cmake/thirdparty/SetupVTKm.cmake)
7373
else()
74-
message(FATAL_ERROR "VTK-h requries VTK-m")
74+
set(VTKM_DIR "" CACHE PATH "Path to VTK-m")
75+
message(FATAL_ERROR "VTK-h requries VTK-m (Please set VTKM_DIR)")
7576
endif()

0 commit comments

Comments
 (0)