Use Find_program instead of Execute_process to detect date-config
[u/mrichter/AliRoot.git] / cmake / modules / FindDATE.cmake
index bf27e0a4ec81297940333572c38d3a26e3969571..a4e31af2130df2694e65af4dba909d208341d57f 100644 (file)
@@ -8,9 +8,7 @@
 
 # Check if DATE is installed and in the path
 
-Execute_process(
-  COMMAND which date-config
-  OUTPUT_VARIABLE DATE_PROGRAM)
+Find_program( DATE_PROGRAM date-config )
 
 If(DATE_PROGRAM)
   Set(DATE_FOUND YES)