You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set( package_name "${unit_name}-lite" CACHE STRING "Name of the package" )
Tried to update third_parties in https://github.com/flexferrum/Jinja2Cpp/tree/master/thirdparty/nonstd to latest, in order to get basic cmake package support, but making package_name CACHE variable caused CMake errors when variant-lite tries to call add_library after adding expected-lite .
add_library cannot create target "expected-lite" because another target
with the same name already exists. The existing target is an interface
library created in source directory
Could you please fix scenario when someone wants to build several of your libraries using your CMakes?
Maybe it is better not to make package_name CACHE variable but CMake option instead. Also there could be possibility of name clash with CMAKE variable package_name declared in upper CMakes. So I would rather call it expected_lite_package_name?
The text was updated successfully, but these errors were encountered:
Hello Martin!
set( package_name "${unit_name}-lite" CACHE STRING "Name of the package" )
Tried to update third_parties in https://github.com/flexferrum/Jinja2Cpp/tree/master/thirdparty/nonstd to latest, in order to get basic cmake package support, but making package_name CACHE variable caused CMake errors when variant-lite tries to call add_library after adding expected-lite .
add_library cannot create target "expected-lite" because another target
with the same name already exists. The existing target is an interface
library created in source directory
Could you please fix scenario when someone wants to build several of your libraries using your CMakes?
Maybe it is better not to make package_name CACHE variable but CMake option instead. Also there could be possibility of name clash with CMAKE variable package_name declared in upper CMakes. So I would rather call it expected_lite_package_name?
The text was updated successfully, but these errors were encountered: