Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
set_maestro example: improve comments
[simgrid.git] / FindSimGrid.cmake
index 25df867..2902b52 100644 (file)
@@ -1,6 +1,6 @@
 # CMake find module to search for the SimGrid library. 
 
-# Copyright (c) 2016-2019. The SimGrid Team.
+# Copyright (c) 2016-2020. The SimGrid Team.
 #
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the license (GNU LGPL) which comes with this package.
@@ -84,6 +84,8 @@ if (SimGrid_INCLUDE_DIR)
   set(SimGrid_VERSION_REGEX "^#define SIMGRID_VERSION_(MAJOR|MINOR|PATCH) ([0-9]+)$")
   if (EXISTS "${SimGrid_INCLUDE_DIR}/simgrid/version.h")
     file(STRINGS "${SimGrid_INCLUDE_DIR}/simgrid/version.h" SimGrid_VERSION_STRING REGEX ${SimGrid_VERSION_REGEX})
+  elseif (EXISTS "${SimGrid_INCLUDE_DIR}/simgrid/config.h")
+    file(STRINGS "${SimGrid_INCLUDE_DIR}/simgrid/config.h" SimGrid_VERSION_STRING REGEX ${SimGrid_VERSION_REGEX})
   else()
     file(STRINGS "${SimGrid_INCLUDE_DIR}/simgrid_config.h" SimGrid_VERSION_STRING REGEX ${SimGrid_VERSION_REGEX})
   endif()