Do not unnecessarily constrain values in verifyPropType()
[hiphop-php.git] / third-party / watchman / src / build / fbcode_builder / CMake / FBBuildOptions.cmake
blobdbaa29933a05b88ced192876c5af62c9e6268b2e
1 # Copyright (c) Facebook, Inc. and its affiliates.
3 function (fb_activate_static_library_option)
4   option(USE_STATIC_DEPS_ON_UNIX
5     "If enabled, use static dependencies on unix systems. This is generally discouraged."
6     OFF
7   )
8   # Mark USE_STATIC_DEPS_ON_UNIX as an "advanced" option, since enabling it
9   # is generally discouraged.
10   mark_as_advanced(USE_STATIC_DEPS_ON_UNIX)
12   if(UNIX AND USE_STATIC_DEPS_ON_UNIX)
13     SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a" PARENT_SCOPE)
14   endif()
15 endfunction()