We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ce8555 commit d7356bbCopy full SHA for d7356bb
CMakeLists.txt
@@ -1,10 +1,19 @@
1
-cmake_minimum_required(VERSION 3.8)
+cmake_minimum_required(VERSION 3.11)
2
3
project(tl-optional VERSION 1.0.0 LANGUAGES CXX)
4
5
option(OPTIONAL_ENABLE_TESTS "Enable tests." ON)
6
7
-set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/tl-cmake" ${CMAKE_MODULE_PATH})
+include(FetchContent)
8
+FetchContent_Declare(
9
+ tl_cmake
10
+ GIT_REPOSITORY https://github.com/TartanLlama/tl-cmake.git
11
+)
12
+FetchContent_GetProperties(tl_cmake)
13
+if(NOT tl_cmake_POPULATED)
14
+ FetchContent_Populate(tl_cmake)
15
+ set(CMAKE_MODULE_PATH ${tl_cmake_SOURCE_DIR} ${CMAKE_MODULE_PATH})
16
+endif()
17
include(add-tl)
18
19
tl_add_library(optional SOURCES
cmake/tl-cmake
0 commit comments