]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use Find_program instead of Execute_process to detect date-config
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 26 Oct 2008 10:21:34 +0000 (10:21 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 26 Oct 2008 10:21:34 +0000 (10:21 +0000)
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)