From 57b87a8c66743318a904114fc96d4e655f87aba8 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 22 Jul 2013 13:25:29 +0000 Subject: [PATCH] Preparation win32 version. --- salome_adm/cmake_files/FindSalomeLIBBATCH.cmake | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/salome_adm/cmake_files/FindSalomeLIBBATCH.cmake b/salome_adm/cmake_files/FindSalomeLIBBATCH.cmake index da8d56855..9f18cc545 100644 --- a/salome_adm/cmake_files/FindSalomeLIBBATCH.cmake +++ b/salome_adm/cmake_files/FindSalomeLIBBATCH.cmake @@ -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}) + -- 2.39.2