Commit 404ae102 authored by barre's avatar barre
Browse files

ENH: actually a little trickier. Do not put Find(Slicerlibcurl) in Modules/,...

ENH: actually a little trickier. Do not put Find(Slicerlibcurl) in Modules/, since this whole subdir can be built independently. Put it in the top dir. Building against an installed Slicer3 should not bring the slicerlibcurl dependency anyway since it was built STATIC, the problem seems to be for modules built from the source tree directly, not external modules. I'd rather not pollute Modules/CMakeLists.txt

git-svn-id: http://svn.slicer.org/Slicer4/trunk@6807 3bd1e089-480b-0410-8dfb-8563597acbee
parent cab91270
......@@ -151,6 +151,12 @@ if(NOT TEEM_FOUND)
endif(NOT TEEM_FOUND)
include(${TEEM_USE_FILE})
## SlicerLibCurl
find_package(SLICERLIBCURL REQUIRED)
if(SLICERLIBCURL_FOUND)
include(${SLICERLIBCURL_USE_FILE})
endif(SLICERLIBCURL_FOUND)
## BatchMake
option(Slicer3_USE_BatchMake "Build Slicer3 with BatchMake support." OFF)
if(Slicer3_USE_BatchMake)
......
......@@ -16,11 +16,6 @@ if(GenerateLM_FOUND)
include(${GenerateLM_USE_FILE})
endif(GenerateLM_FOUND)
find_package(SLICERLIBCURL REQUIRED)
if(SLICERLIBCURL_FOUND)
include(${SLICERLIBCURL_USE_FILE})
endif(SLICERLIBCURL_FOUND)
# Dependencies (to be untangled later, for now the whole directory has to
# be built at the same time)
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment