Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a flags for include a lib for winsock.
[simgrid.git] / buildtools / Cmake / Distrib.cmake
index 3b2e74a..e2f68c7 100755 (executable)
@@ -1,4 +1,4 @@
-set(CMAKE_INSTALL_PREFIX ${prefix} CACHE TYPE INTERNAL FORCE)
+set(CMAKE_INSTALL_PREFIX "${prefix}" CACHE TYPE INTERNAL FORCE)
 
 #########################################
 ### Fill in the "make install" target ###
@@ -238,10 +238,15 @@ add_dependencies(distcheck dist-dir)
 ### Fill in the "make check" target ###
 #######################################
 
-add_custom_target(check
-COMMAND make test
-#WORKING_DIRECTORY "${PROJECT_DIRECTORY}"
-)
+if(enable_memcheck)
+       add_custom_target(check
+       COMMAND ctest -D ExperimentalMemCheck
+       )
+else(enable_memcheck)
+       add_custom_target(check
+       COMMAND make test
+       )
+endif(enable_memcheck)
 
 #######################################
 ### Fill in the "make all-clean" target ###