mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
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:
parent
8bf48835a3
commit
ad1aab5e34
@ -42,7 +42,10 @@ else()
|
||||
# to add search paths.
|
||||
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()
|
||||
|
||||
include(CheckCXXSourceCompiles)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user