cmake: look for iniparser using config file first, then try our custom module file

Our custom module file is still useful.
My linux distro does not package the cmake files.
This commit is contained in:
Anonymous Maarten 2024-06-25 14:42:52 +02:00
parent 15f874803d
commit a37ca7aa75

View File

@ -42,7 +42,10 @@ else()
# to add search paths. # to add search paths.
find_package(SDL3 CONFIG REQUIRED) find_package(SDL3 CONFIG REQUIRED)
find_package(iniparser REQUIRED COMPONENTS static) find_package(iniparser CONFIG COMPONENTS static)
if(NOT TARGET iniparser-static)
find_package(iniparser REQUIRED MODULE COMPONENTS static)
endif()
endif() endif()
include(CheckCXXSourceCompiles) include(CheckCXXSourceCompiles)