-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 4e7f0ff..fd1cee8 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -54,6 +54,7 @@ function(libenvpp_set_compiler_parameters TARGET) | ||
endfunction() | ||
|
||
# External dependencies. | ||
+if(0) | ||
if(LIBENVPP_INSTALL) | ||
set(FMT_INSTALL ON CACHE BOOL "" FORCE) | ||
endif() | ||
@@ -63,7 +64,8 @@ FetchContent_Declare(fmt | ||
GIT_TAG 11.0.2 | ||
) | ||
FetchContent_MakeAvailable(fmt) | ||
- | ||
+endif() | ||
+find_package(fmt REQUIRED CONFIG) | ||
if(LIBENVPP_TESTS) | ||
FetchContent_Declare(Catch2 | ||
GIT_REPOSITORY https://github.com/catchorg/Catch2.git | ||
@@ -133,7 +135,9 @@ endif() | ||
|
||
# Installation target. | ||
if(LIBENVPP_INSTALL) | ||
- # Libenvpp installation. | ||
+ include(CMakePackageConfigHelpers) | ||
+ | ||
+ # Libenvpp installation. | ||
set(LIBENVPP_PROJECT_CONFIG_OUT "${CMAKE_CURRENT_BINARY_DIR}/libenvpp-config.cmake") | ||
set(LIBENVPP_VERSION_CONFIG_FILE "${CMAKE_CURRENT_BINARY_DIR}/libenvpp-config-version.cmake") | ||
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
versions: | ||
"1.4.2": | ||
folder: all | ||
"1.4.1": | ||
folder: all | ||
"1.4.0": | ||
|