From: bruneton Date: Tue, 2 Jul 2013 09:44:34 +0000 (+0000) Subject: CMake: adapting installation path of LibBatchConfig.cmake for Win32 X-Git-Tag: V2_1_0rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d926e432e908db0767f14698113459ea5aaa84a;p=tools%2Flibbatch.git CMake: adapting installation path of LibBatchConfig.cmake for Win32 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c84baf2..258ca73 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,14 @@ INCLUDE(libbatchMacros) # User options # ============ -SET(INSTALL_CMAKE_CONFIG_DIR share/cmake/libbatch) +IF(WIN32 AND NOT CYGWIN) + # This is really stupid: in the FIND_PACKAGE() command, the default paths + # are not the same under Win and Nix (see CMake doc). This means we have to specify + # different installation directories for LibBatchConfig.cmake: + SET(INSTALL_CMAKE_CONFIG_DIR cmake) +ELSE() + SET(INSTALL_CMAKE_CONFIG_DIR share/cmake/libbatch) +ENDIF() SET(INSTALL_INCLUDE_DIR include) SET(LIBBATCH_LOCAL_SUBMISSION TRUE CACHE BOOL "Build classes for local submission")