update publish script to set CPM.cmake version automatically

This commit is contained in:
Lars Melchior
2020-08-04 12:35:03 +02:00
parent ac872f6908
commit f97a7c61fc
2 changed files with 6 additions and 2 deletions

View File

@@ -28,7 +28,7 @@
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
set(CURRENT_CPM_VERSION 0.27.2)
set(CURRENT_CPM_VERSION 0.0.0)
if(CPM_DIRECTORY)
if(NOT CPM_DIRECTORY STREQUAL CMAKE_CURRENT_LIST_DIR)