rom-properties/extlib/inih/CMakeLists.txt
David Korth f0647da5eb Remove CheckHiddenVisibility.cmake.
The root CMakeLists.txt has a minimum CMake version of 3.5, and
CheckHiddenVisibility.cmake's workarounds are only needed for
CMake 3.2 and earlier.

Set CMP0063 unconditionally (added in CMake 3.3) and set the
CMAKE_<LANG>_VISIBILITY_PRESET and CMAKE_VISIBILITY_INLINES_HIDDEN
variables where CHECK_HIDDEN_VISIBILITY() was called before.

There should effectively be no code changes with this commit.
2025-01-18 22:34:24 -05:00

23 lines
554 B
CMake
Vendored

# inih: Simple .INI file parser in C
PROJECT(inih VERSION 51 LANGUAGES C)
CMAKE_POLICY(SET CMP0063 NEW)
SET(CMAKE_C_VISIBILITY_PRESET "hidden")
SET(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
# Sources.
SET(inih_SRCS ini.c)
SET(inih_H ini.h)
######################
# Build the library. #
######################
ADD_LIBRARY(inih STATIC ${inih_SRCS})
TARGET_INCLUDE_DIRECTORIES(inih
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}
)
# inih is not exported by libromdata, so disable
# its symbol visibility definitions.
TARGET_COMPILE_DEFINITIONS(inih PUBLIC INI_API=)