|
|
@ -24,7 +24,10 @@ mark_as_advanced(inih_inireader_LIBRARY)
|
|
|
|
|
|
|
|
|
|
|
|
find_package_handle_standard_args(inih REQUIRED_VARS inih_LIBRARY inih_INCLUDE_DIR)
|
|
|
|
find_package_handle_standard_args(inih REQUIRED_VARS inih_LIBRARY inih_INCLUDE_DIR)
|
|
|
|
|
|
|
|
|
|
|
|
if(inih_FOUND)
|
|
|
|
if(NOT inih_FOUND)
|
|
|
|
|
|
|
|
message(FATAL_ERROR "inih library not found")
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
set(inih_INCLUDE_DIRS "${inih_INCLUDE_DIR}")
|
|
|
|
set(inih_INCLUDE_DIRS "${inih_INCLUDE_DIR}")
|
|
|
|
set(inih_LIBRARIES "${inih_LIBRARY}")
|
|
|
|
set(inih_LIBRARIES "${inih_LIBRARY}")
|
|
|
|
if(NOT TARGET inih::libinih)
|
|
|
|
if(NOT TARGET inih::libinih)
|
|
|
@ -40,4 +43,3 @@ if(inih_FOUND)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
set_property(TARGET inih::inireader PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${inih_inireader_INCLUDE_DIRS}")
|
|
|
|
set_property(TARGET inih::inireader PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${inih_inireader_INCLUDE_DIRS}")
|
|
|
|
set_property(TARGET inih::inireader PROPERTY INTERFACE_LINK_LIBRARIES "${inih_inireader_LIBRARIES}")
|
|
|
|
set_property(TARGET inih::inireader PROPERTY INTERFACE_LINK_LIBRARIES "${inih_inireader_LIBRARIES}")
|
|
|
|
endif()
|
|
|
|
|
|
|
|