Fixes for ALI_AMORE
authoranshul.goel <anshul.goel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 10:33:10 +0000 (10:33 +0000)
committeranshul.goel <anshul.goel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Nov 2011 10:33:10 +0000 (10:33 +0000)
cmake/FindAMORE.cmake

index 693154f..56b7df4 100644 (file)
@@ -12,12 +12,13 @@ if(AMORE_CONFIG)
   execute_process(COMMAND ${AMORE_CONFIG} --cflags --includes OUTPUT_VARIABLE AMOREFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
   execute_process(COMMAND ${AMORE_CONFIG} --ldflags --ldflags-da-static --libs OUTPUT_VARIABLE _lddaflags OUTPUT_STRIP_TRAILING_WHITESPACE)
   ALICE_CleanOutput(_lddaflags "${_lddaflags}")
+  set(AMOREFLAGS "-DALI_AMORE ${AMOREFLAGS}")
   if(DATE_FOUND)
     execute_process(COMMAND ${DATE_CONFIG} --rcproxylibs OUTPUT_VARIABLE _rcproxylib OUTPUT_STRIP_TRAILING_WHITESPACE)
   else()
     message(STATUS "AMORE requires DATE")
   endif(DATE_FOUND)
   set(AMOREDALIBS "-static ${_lddaflags} ${_rcproxylib}")
-else()
+  else()
   message(STATUS "AMORE not found")
 endif(AMORE_CONFIG)