@@ -31,8 +31,9 @@ endif()
31
31
###############################################################################
32
32
# Project definition.
33
33
34
- project (CasbinCPP
35
- VERSION 1.38.2
34
+ project (
35
+ casbin
36
+ VERSION 1.38.0
36
37
DESCRIPTION "An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++"
37
38
HOMEPAGE_URL https://github.com/casbin/casbin-cpp
38
39
LANGUAGES CXX C
@@ -55,6 +56,7 @@ option(CASBIN_BUILD_BENCHMARK "State whether to build benchmarks" ON)
55
56
option (CASBIN_BUILD_BINDINGS "State whether to build language bindings" ON )
56
57
option (CASBIN_BUILD_PYTHON_BINDINGS "State whether to build python bindings" ON )
57
58
59
+
58
60
# Do not output install messages.
59
61
if (NOT DEFINED CMAKE_INSTALL_MESSAGE)
60
62
set (CMAKE_INSTALL_MESSAGE "NEVER" )
@@ -78,24 +80,11 @@ endif()
78
80
set (CMAKE_CXX_STANDARD 17)
79
81
80
82
###############################################################################
81
- # Find or install external dependencies
83
+ # Install external dependencies
82
84
# Some required targets may be created by third-party CMake configs, which
83
85
# don't generally produce global targets. To guarantee all imported targets are
84
86
# global, this module is included at the project root level.
85
87
86
88
include (FindExtPackages)
87
89
88
90
add_subdirectory (casbin)
89
-
90
- export (TARGETS
91
- casbin
92
- NAMESPACE casbin::
93
- FILE "${CMAKE_CURRENT_BINARY_DIR} /CasbinConfig.cmake"
94
- )
95
-
96
- if (CASBIN_BUILD_PYTHON_BINDINGS)
97
- export (TARGETS pycasbin
98
- NAMESPACE casbin::
99
- FILE "${CMAKE_CURRENT_BINARY_DIR} /PyCasbinConfig.cmake"
100
- )
101
- endif ()
0 commit comments