John, In today's CVS HEAD of VTK, on line 51/52 of CMakeLists.txt we use these two lines: SET(VTK_CMAKE_DIR "${VTK_SOURCE_DIR}/CMake") SET(CMAKE_MODULE_PATH "${VTK_CMAKE_DIR}" ${CMAKE_MODULE_PATH})
to set a custom CMake module path for VTK builds. I do not know of anybody having problems with VTK related to CMake modules... When you say: "I am able to find my "local" cmake modules but cannot find the "system" cmake modules, in the cmake module directory." What do you mean? Are you getting an error message when doing a FIND_PACKAGE or an INCLUDE? Either technique (appending via a SET command or using a LIST(APPEND command) should work OK. Let me know what your specific error message is and maybe I can help you narrow down what the problem is. Or... maybe you could post a minimal example CMakeLists.txt that is standalone that demonstrates the problem? Thanks, David On Tue, Mar 3, 2009 at 11:45 AM, John Vines (CISD/HPCD) <jvi...@arl.army.mil > wrote: > Unfortunately this isn't working either: > 1 SET(MY_MODULE_DIR "/home/jvines/Devel/CMAKE_MODULES") > 2 LIST(APPEND CMAKE_MODULE_PATH ${MY_MODULE_DIR}) > 3 > 4 message("${CMAKE_MODULE_PATH}") > > I am able to find my "local" cmake modules but cannot find the "system" > cmake modules, in the cmake module directory. > > Leiter, Kenneth (Cont, ARL/CISD) wrote: > >> Classification: UNCLASSIFIED Caveats: NONE >> >> Hey, >> >> I think you may need to add some quotes (looking at some examples online) >> >> SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${MY_MODULE_DIR}") >> >> - Ken >> >> -----Original Message----- >> From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf >> Of >> John Vines (CISD/HPCD) >> Sent: Tuesday, March 03, 2009 11:24 AM >> To: cmake@cmake.org >> Subject: [CMake] CMAKE_MODULE_PATH >> >> All, >> What is the correct syntax to add a module directory to the default >> module path? >> >> I am trying to append my module directory to the default module path >> using this: >> SET(MY_MODULE_DIR /home/jvines/Devel/CMAKE_MODULES) >> SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${MY_MODULE_DIR}) >> >> It doesn't seem to be working. >> >> Thanks in advance, >> John >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the CMake FAQ at: >> http://www.cmake.org/Wiki/CMake_FAQ >> >> Follow this link to subscribe/unsubscribe: >> http://www.cmake.org/mailman/listinfo/cmake >> Classification: UNCLASSIFIED Caveats: NONE >> >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake