Update gmxapi version details.
[alexxy/gromacs.git] / python_packaging / src / CMakeLists.txt
index a0e04c002d5ee1eb06a4094a08254355768bcd1a..b93d8cd37b0db80829174b2abd4b1ec152b545d5 100644 (file)
@@ -52,7 +52,10 @@ set(CMAKE_OSX_ARCHITECTURES x86_64 CACHE STRING
     "OS X should build Python package for 64-bit architecture"
     FORCE)
 
-project(gmxapi VERSION 0.1.0)
+# Note that this is the gmxapi._gmxapi Python bindings package version,
+# not the C++ API version. It is not essential that it match the pure Python
+# package version, but is likely to do so.
+project(gmxapi VERSION 0.2.0)
 
 # Check if Python package is being built directly or via add_subdirectory
 set(GMXAPI_MASTER_PROJECT OFF)
@@ -73,7 +76,8 @@ if(POLICY CMP0074) #3.12
 endif()
 
 if(GMXAPI_MASTER_PROJECT)
-    find_package(gmxapi 0.0.8 REQUIRED
+    # TODO: Retain compatibility with libgmxapi 0.1 and back down the requirement.
+    find_package(gmxapi 0.2.0 REQUIRED
                  HINTS "$ENV{GROMACS_DIR}"
                  )
 endif()
@@ -147,6 +151,7 @@ set_target_properties(_gmxapi PROPERTIES
                       LIBRARY_OUTPUT_DIRECTORY ${GMXAPI_PYTHON_STAGING_DIR}/gmxapi)
 
 if(GMXAPI_MASTER_PROJECT)
+    # TODO: This requirement is probably overly restrictive.
     find_package(GROMACS 2021 REQUIRED
                  HINTS "$ENV{GROMACS_DIR}"
                  )