Skip to content

Commit

Permalink
Merge branch 'main' into RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Sep 20, 2024
2 parents a5cae21 + 17f5b95 commit d7ddb27
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions tk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,28 @@
# By the time we get here, we have run FindTCL and should know
# if we have TK.

if (NOT DISABLE_TCL)
if (NOT TK_LIBRARY OR TARGET TCL_BLD)
set(TK_DO_BUILD 1)
else (NOT TK_LIBRARY OR TARGET TCL_BLD)
if (USE_BRLCAD)

# Decide if we're using Tk
cad_enable(TK "archer;mged;bwish;rtwizard;brlman")

if (DISABLE_TK)
set(TK_DO_BUILD 0)
endif (DISABLE_TK)

else (USE_BRLCAD)

if (NOT DISABLE_TCL)
if (NOT TK_LIBRARY OR TARGET TCL_BLD)
set(TK_DO_BUILD 1)
else (NOT TK_LIBRARY OR TARGET TCL_BLD)
set(TK_DO_BUILD 0)
endif (NOT TK_LIBRARY OR TARGET TCL_BLD)
else (NOT DISABLE_TCL)
set(TK_DO_BUILD 0)
endif (NOT TK_LIBRARY OR TARGET TCL_BLD)
else (NOT DISABLE_TCL)
set(TK_DO_BUILD 0)
endif (NOT DISABLE_TCL)
endif (NOT DISABLE_TCL)

endif(USE_BRLCAD)

if (TK_DO_BUILD)

Expand Down

0 comments on commit d7ddb27

Please sign in to comment.