1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +01:00
openrw/cmake/external/inih.cmake
Dmitry Marakasov 6582704b05 Use inih as git submodule
ExternalProject use is discouraged.
- Most package build systems do not allow any fetching on
  configure/build stage
- It's insecure the way it's used now, as it does not specify commit
  hash, so it may fetch whatever malicous code and it'll come
  unoticed
2016-05-25 18:28:57 +03:00

12 lines
263 B
CMake

###### External Project: inih
include(ExternalProject)
SET(INIH_PREFIX_DIR ${PROJECT_SOURCE_DIR}/external/inih)
SET(INIH_SOURCES
${INIH_PREFIX_DIR}/ini.c)
add_library(inih
${INIH_SOURCES})
target_include_directories(inih INTERFACE SYSTEM ${INIH_PREFIX_DIR})