File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ set(PACKAGE_PROJECT_ROOT_PATH
5
5
CACHE INTERNAL "The path to the PackageProject directory"
6
6
)
7
7
8
- # if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.31.0")
9
- # cmake_policy(SET CMP0177 NEW)
10
- # endif()
8
+ # if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.31.0") cmake_policy(SET CMP0177 NEW) endif()
11
9
12
10
function (packageProject)
13
11
include (CMakePackageConfigHelpers)
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ int main() {
33
33
result &= TRANSITIVE_DEPENDENCY_VERSION_PATCH == 9 ;
34
34
result &= TRANSITIVE_DEPENDENCY_VERSION_TWEAK == 21948124 ;
35
35
result &= (5 == add (2 , 3 ));
36
- result &= HEADER_ONLY_VERSION == std::string (" 1.0" );
36
+ result &= HEADER_ONLY_VERSION == std::string (" 1.0.0.0 " );
37
37
result &= HEADER_ONLY_VERSION_MAJOR == 1 ;
38
38
result &= HEADER_ONLY_VERSION_MINOR == 0 ;
39
39
result &= HEADER_ONLY_VERSION_PATCH == 0 ;
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ packageProject(
53
53
VERSION ${PROJECT_VERSION}
54
54
NAMESPACE ${PROJECT_NAME}
55
55
BINARY_DIR ${PROJECT_BINARY_DIR}
56
- INCLUDE_DIR ${PROJECT_SOURCE_DIR} /include
56
+ INCLUDE_DIR ${PROJECT_SOURCE_DIR} /include
57
57
INCLUDE_DESTINATION include
58
58
VERSION_HEADER "transitive_dependency/version.h"
59
59
EXPORT_HEADER "transitive_dependency/export.h"
You can’t perform that action at this time.
0 commit comments