casbin / casbin-cpp

An authorization library that supports access control models like ACL, RBAC, ABAC in C/C++
https://casbin.org
Apache License 2.0
223 stars 61 forks source link

set_target_properties called with incorrect number of arguments #205

Closed cs1137195420 closed 1 year ago

cs1137195420 commented 2 years ago

Description

This error occurred when I tried to run a CMake project including casbin-cpp on Visual Studio2019. It seems that set_target_properties didn't recognize it after PREFIX was set to empty character, which caused incorrect number of arguments. Is this a bug that needs to be fixed?

My System Info

Windows 10, cmake version 3.24.0-rc2

Screenshots

The CMakeLists.txt of project: image

The error message: image

The place where the error occurred: image

casbin-bot commented 2 years ago

@EmperorYP7 @divy9881 @noob20000405 @sheny1xuan

hsluoyz commented 2 years ago

@sheny1xuan

sheny1xuan commented 2 years ago

Of course, casbin-cpp support three platform, you can try to fix it.

hsluoyz commented 1 year ago

Fixed by: https://github.com/casbin/casbin-cpp/pull/237