Support unofficial::getopt-win32::getopt as a getopt library target
Handles the vcpkg case
This commit is contained in:
committed by
Jonas Kvinge
parent
b4c5b9e1e1
commit
5f0175094b
@@ -266,6 +266,8 @@ if(WIN32)
|
|||||||
set(GETOPT_LIBRARIES getopt-win::getopt)
|
set(GETOPT_LIBRARIES getopt-win::getopt)
|
||||||
elseif(TARGET getopt::getopt_shared)
|
elseif(TARGET getopt::getopt_shared)
|
||||||
set(GETOPT_LIBRARIES getopt::getopt_shared)
|
set(GETOPT_LIBRARIES getopt::getopt_shared)
|
||||||
|
elseif(TARGET unofficial::getopt-win32::getopt)
|
||||||
|
set(GETOPT_LIBRARIES unofficial::getopt-win32::getopt)
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Missing getopt")
|
message(FATAL_ERROR "Missing getopt")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user