diff options
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 854eb5b..1cd6c0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,15 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 3.0) +if(CMAKE_MAJOR_VERSION GREATER 3 + OR (CMAKE_MAJOR_VERSION EQUAL 3 AND CMAKE_MINOR_VERSION GREATER 30)) + cmake_minimum_required(VERSION 3.10) +elseif(CMAKE_MAJOR_VERSION EQUAL 3 AND CMAKE_MINOR_VERSION GREATER 26) + cmake_minimum_required(VERSION 3.5) +else() + cmake_minimum_required(VERSION 3.0) +endif() + project(dynstr LANGUAGES C VERSION 0.1.0) add_library(${PROJECT_NAME} "dynstr.c") target_include_directories(${PROJECT_NAME} PUBLIC "include") |
