@@ -31,8 +31,9 @@ endif()
3131###############################################################################
3232# Project definition.
3333
34- project (CasbinCPP
35- VERSION 1.38.2
34+ project (
35+ casbin
36+ VERSION 1.38.0
3637 DESCRIPTION "An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++"
3738 HOMEPAGE_URL https://github.com/casbin/casbin-cpp
3839 LANGUAGES CXX C
@@ -55,6 +56,7 @@ option(CASBIN_BUILD_BENCHMARK "State whether to build benchmarks" ON)
5556option (CASBIN_BUILD_BINDINGS "State whether to build language bindings" ON )
5657option (CASBIN_BUILD_PYTHON_BINDINGS "State whether to build python bindings" ON )
5758
59+
5860# Do not output install messages.
5961if (NOT DEFINED CMAKE_INSTALL_MESSAGE)
6062 set (CMAKE_INSTALL_MESSAGE "NEVER" )
@@ -78,24 +80,11 @@ endif()
7880set (CMAKE_CXX_STANDARD 17)
7981
8082###############################################################################
81- # Find or install external dependencies
83+ # Install external dependencies
8284# Some required targets may be created by third-party CMake configs, which
8385# don't generally produce global targets. To guarantee all imported targets are
8486# global, this module is included at the project root level.
8587
8688include (FindExtPackages)
8789
8890add_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