Browse Source

CMake: Make HAVE_VIDEO4LINUX dependent on Linux

Sam Edwards 5 years ago
parent
commit
68f1083dbf
1 changed files with 3 additions and 2 deletions
  1. 3 2
      dtool/Config.cmake

+ 3 - 2
dtool/Config.cmake

@@ -421,8 +421,9 @@ else()
 endif()
 endif()
 list(APPEND PER_CONFIG_OPTIONS USE_DEBUG_PYTHON)
 list(APPEND PER_CONFIG_OPTIONS USE_DEBUG_PYTHON)
 
 
-option(HAVE_VIDEO4LINUX
-  "Set this to enable webcam support on Linux." ${IS_LINUX})
+cmake_dependent_option(HAVE_VIDEO4LINUX
+  "Set this to enable webcam support on Linux." ON
+  "IS_LINUX" OFF)
 
 
 
 
 # If you are having trouble linking in OpenGL extension functions at
 # If you are having trouble linking in OpenGL extension functions at