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 bf27e0a..a4e31af 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)