]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Preparation win32 version.
authorrnv <rnv@opencascade.com>
Mon, 22 Jul 2013 13:25:29 +0000 (13:25 +0000)
committerrnv <rnv@opencascade.com>
Mon, 22 Jul 2013 13:25:29 +0000 (13:25 +0000)
salome_adm/cmake_files/FindSalomeLIBBATCH.cmake

index da8d56855c63b30ca35080782c47edc84e89c848..9f18cc545bdd74d269e060bd48abb5bf447711c4 100644 (file)
@@ -36,6 +36,9 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(libbatch DEFAULT_MSG
   LIBBATCH_ROOT_DIR LIBBATCH_INCLUDE_DIRS LIBBATCH_LIBRARIES
   LIBBATCH_RUNTIME_LIBRARY_DIRS LIBBATCH_PYTHONPATH)
 
-if(WINDOWS)
-  set(CMAKE_FIND_LIBRARY_SUFFIXES ${PREV_CMAKE_FIND_LIBRARY_SUFFIXES})
-endif(WINDOWS)
+if(EXISTS ${LIBBATCH_ROOT_DIR})
+  if(WINDOWS)
+    set(CMAKE_FIND_LIBRARY_SUFFIXES ${PREV_CMAKE_FIND_LIBRARY_SUFFIXES})
+  endif(WINDOWS)
+endif(EXISTS ${LIBBATCH_ROOT_DIR})
+