Skip to content

Commit

Permalink
Use ENABLE_DM_PLUGINS instead of SKIP_DM_PLUGINS
Browse files Browse the repository at this point in the history
Avoid a potentially confusing mix of SKIP_X and ENABLE_X in CMake config
variables; switch to the consistent use of ENABLE_X with appropriate default
ON/OFF values.
  • Loading branch information
Matthew Mott committed Dec 11, 2020
1 parent b3a1f56 commit 68f39ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Expand Up @@ -8,7 +8,7 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# Expose some build options
option(SKIP_DM_PLUGINS "Don't build Dark Mod specific plugins" OFF)
option(ENABLE_DM_PLUGINS "Build Dark Mod specific plugins" ON)
option(ENABLE_RELOCATION
"Avoid hard-coded absolute paths to libraries or resources"
ON)
Expand Down Expand Up @@ -89,7 +89,7 @@ add_subdirectory(plugins/script)
add_subdirectory(plugins/sound)

# Dark Mod plugins
if (NOT SKIP_DM_PLUGINS)
if (${ENABLE_DM_PLUGINS})
add_subdirectory(plugins/dm.stimresponse)
add_subdirectory(plugins/dm.objectives)
add_subdirectory(plugins/dm.difficulty)
Expand All @@ -110,7 +110,7 @@ install(TARGETS radiantcore script sound
LIBRARY DESTINATION lib/darkradiant/modules)

# Install Dark Mod plugins
if (NOT SKIP_DM_PLUGINS)
if (${ENABLE_DM_PLUGINS})
install(TARGETS dm_stimresponse dm_objectives dm_difficulty dm_editing
dm_gui dm_gameconnection
LIBRARY DESTINATION lib/darkradiant/plugins)
Expand Down

0 comments on commit 68f39ab

Please sign in to comment.