+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()