Skip to content

Commit

Permalink
[build] Add variable telling if DESTINATION is needed with install()
Browse files Browse the repository at this point in the history
It seems DESTINATION was only allowed to be omitted in 3.14

https://cmake.org/cmake/help/v3.14/command/install.html#targets
vs
https://cmake.org/cmake/help/v3.13/command/install.html#targets

After that the install destination directories can be deduced.
  • Loading branch information
robUx4 authored and maxsharabayko committed Sep 9, 2022
1 parent ec52c45 commit bb6fede
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ set_if(ANDROID ${SYSNAME_LC} MATCHES "android")
set_if(SUNOS "${SYSNAME_LC}" MATCHES "sunos")
set_if(POSIX LINUX OR DARWIN OR BSD OR SUNOS OR ANDROID OR (CYGWIN AND CYGWIN_USE_POSIX))
set_if(SYMLINKABLE LINUX OR DARWIN OR BSD OR SUNOS OR CYGWIN OR GNU)
set_if(NEED_DESTINATION ${CMAKE_VERSION} VERSION_LESS "3.14.0")

# Not sure what to do in case of compiling by MSVC.
# This will make installdir in C:\Program Files\SRT then
Expand Down

0 comments on commit bb6fede

Please sign in to comment.