mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 11:35:38 -04:00

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.
17 lines
484 B
CMake
Vendored
17 lines
484 B
CMake
Vendored
# Basis Universal ASTC decoder
|
|
PROJECT(basisu_astc LANGUAGES CXX)
|
|
|
|
# rom-properties: Hide symbols by default, since we don't want them
|
|
# leaking from the static library to the plugins.
|
|
CMAKE_POLICY(SET CMP0063 NEW)
|
|
SET(CMAKE_CXX_VISIBILITY_PRESET "hidden")
|
|
SET(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
|
|
|
|
ADD_LIBRARY(${PROJECT_NAME} STATIC
|
|
basisu_astc_decomp.cpp
|
|
basisu_astc_decomp.h
|
|
)
|
|
TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME}
|
|
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
)
|