diff --git a/hurricane/cmake_modules/FindOPENACCESS.cmake b/hurricane/cmake_modules/FindOPENACCESS.cmake index 5a565865..33773ba0 100644 --- a/hurricane/cmake_modules/FindOPENACCESS.cmake +++ b/hurricane/cmake_modules/FindOPENACCESS.cmake @@ -143,7 +143,7 @@ IF(UNIX) IF (OA_INCLUDE_PATH AND OA_OACOMMON_LIBRARY AND OA_OABASE_LIBRARY AND OA_OADM_LIBRARY AND OA_OATECH_LIBRARY AND OA_OADESIGN_LIBRARY AND OA_OAWAFER_LIBRARY AND OA_OAPLUGIN_LIBRARY) - SET(OPENACCESS_FOUND "YES") + SET(OA_FOUND "YES") IF (NOT OA_FIND_QUIETLY) MESSAGE(STATUS "Found OpenAccess") ENDIF( NOT OA_FIND_QUIETLY) @@ -160,7 +160,7 @@ IF(UNIX) ${OA_OAPLUGIN_LIBRARY} ) ELSE (OA_INCLUDE_PATH AND OA_LIBRARY_PATH) - SET(OPENACCESS_FOUND "NO") + SET(OA_FOUND "NO") IF(OA_FIND_REQUIRED) MESSAGE( FATAL_ERROR "OpenAccess libraries, includes NOT found!") ENDIF( OA_FIND_REQUIRED) @@ -168,6 +168,8 @@ IF(UNIX) AND OA_OADM_LIBRARY AND OA_OATECH_LIBRARY AND OA_OADESIGN_LIBRARY AND OA_OAWAFER_LIBRARY AND OA_OAPLUGIN_LIBRARY) - SET(OA_FOUND ${OA_FOUND}) + IF(OA_FOUND) + ADD_DEFINITIONS(-DHAVE_OPENACCESS) + ENDIF(OA_FOUND) ENDIF(UNIX)