casbin-cpp icon indicating copy to clipboard operation
casbin-cpp copied to clipboard

set_target_properties called with incorrect number of arguments

Open cs1137195420 opened this issue 3 years ago • 3 comments

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

cs1137195420 avatar Jul 07 '22 14:07 cs1137195420

@EmperorYP7 @divy9881 @noob20000405 @sheny1xuan

casbin-bot avatar Jul 07 '22 14:07 casbin-bot

@sheny1xuan

hsluoyz avatar Jul 07 '22 16:07 hsluoyz

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

sheny1xuan avatar Jul 08 '22 02:07 sheny1xuan

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

hsluoyz avatar Sep 11 '23 18:09 hsluoyz