]> Creatis software - clitk.git/commitdiff
Various fixes
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 1 Oct 2012 14:56:38 +0000 (16:56 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 1 Oct 2012 14:56:38 +0000 (16:56 +0200)
superbuild/CMakeLists.txt

index f4727a83a1bc0ded2f65e732899fcdb425353498..08e85ed57bfa9cadd8196441220f5b4cc067ce80 100644 (file)
@@ -69,7 +69,7 @@ SET(qmake_executable "${build_prefix}/QT/bin/qmake")
 
 #=========================================================
 # VTK
-SET(VTK_CMAKE_CXX_STANDARD_LIBRARIES "${VTK_CMAKE_CXX_STANDARD_LIBRARIES}")
+SET(VTK_CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES}")
 IF(MSVC)
   SET(VTK_CMAKE_CXX_STANDARD_LIBRARIES "${VTK_CMAKE_CXX_STANDARD_LIBRARIES} Imm32.lib Winmm.lib Ws2_32.lib")
 ENDIF(MSVC)
@@ -140,13 +140,18 @@ if(CMAKE_COMPILER_IS_GNUCXX)
   SET(VV_CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
 endif(CMAKE_COMPILER_IS_GNUCXX)
 
+SET(MAKE_COMMAND "make")
+if(MSVC)
+  SET(MAKE_COMMAND "nmake")
+endif(MSVC)
+
 ExternalProject_Add(
   VV
   DEPENDS QT VTK ITK
   SOURCE_DIR ${source_prefix}/vv
   GIT_REPOSITORY git://git.creatis.insa-lyon.fr/clitk
-  GIT_TAG HEAD
-  INSTALL_COMMAND ""
+  GIT_TAG v1.3.0
+  INSTALL_COMMAND ${MAKE_COMMAND} package
   CMAKE_ARGS
     -DQT_QMAKE_EXECUTABLE:FILEPATH=${qmake_executable}
     -DITK_DIR:PATH=${ITK_DIR}