File: handle-deprecations.cmake

package info (click to toggle)
simdjson 4.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 31,396 kB
  • sloc: cpp: 195,760; ansic: 20,954; sh: 1,126; python: 885; makefile: 47; ruby: 25; javascript: 13
file content (23 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if(DEFINED SIMDJSON_BUILD_STATIC)
  message(DEPRECATION "SIMDJSON_BUILD_STATIC is deprecated, setting \
BUILD_SHARED_LIBS with its value and unsetting it")
  set(shared ON)
  if(SIMDJSON_BUILD_STATIC)
    set(shared OFF)
  endif()

  set(BUILD_SHARED_LIBS "${shared}" CACHE BOOL "" FORCE)
  unset(SIMDJSON_BUILD_STATIC CACHE)
endif()

if(DEFINED SIMDJSON_JUST_LIBRARY)
  message(DEPRECATION "SIMDJSON_JUST_LIBRARY is deprecated, setting \
SIMDJSON_DEVELOPER_MODE with its value and unsetting it")
  set(dev_mode ON)
  if(SIMDJSON_JUST_LIBRARY)
    set(dev_mode OFF)
  endif()

  set(SIMDJSON_DEVELOPER_MODE "${dev_mode}" CACHE BOOL "" FORCE)
  unset(SIMDJSON_JUST_LIBRARY CACHE)
endif()