Permalink
Browse files

It seems cmake option variable don't propogate down

  • Loading branch information...
JonnyH committed Aug 31, 2018
1 parent 4793a82 commit b951dc39cec870661d8302f3b8047e71a982e6b6
Showing with 3 additions and 1 deletion.
  1. +3 −1 tools/extractors/CMakeLists.txt
@@ -899,7 +899,9 @@ add_extractor(EXTRACTOR_TARGET_LIST "battle_map_sectors"
"data/maps/57ufo7_01"
"data/maps/58ufo8_01")
if ($EXTRACT_DATA)
option(EXTRACT_DATA "Run the data extractor as part of the default target" ON)
if (${EXTRACT_DATA})
add_custom_target(extract-data ALL DEPENDS ${EXTRACTOR_TARGET_LIST})
else()
add_custom_target(extract-data DEPENDS ${EXTRACTOR_TARGET_LIST})

0 comments on commit b951dc3

Please sign in to comment.