From cd6947c7e057308e0ccda87981e39caa2eb7cc41 Mon Sep 17 00:00:00 2001 From: Marc Chapman Date: Tue, 23 Jan 2018 22:48:20 +0000 Subject: [PATCH] Phase 3: Adjust cmake files to add #define to torque config --- Tools/CMake/modules/module_afx.cmake | 7 +++---- Tools/CMake/torqueConfig.h.in | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Tools/CMake/modules/module_afx.cmake b/Tools/CMake/modules/module_afx.cmake index 177af6e6d..9775a3ae0 100644 --- a/Tools/CMake/modules/module_afx.cmake +++ b/Tools/CMake/modules/module_afx.cmake @@ -20,8 +20,7 @@ # IN THE SOFTWARE. # ----------------------------------------------------------------------------- -option(TORQUE_AFX "Enable AFX module" ON) -if(TORQUE_AFX) -# files -addPathRec( "${srcDir}/afx" ) +option(TORQUE_AFX_ENABLED "Enable AFX module" ON) +if(TORQUE_AFX_ENABLED) + addPathRec( "${srcDir}/afx" ) endif() \ No newline at end of file diff --git a/Tools/CMake/torqueConfig.h.in b/Tools/CMake/torqueConfig.h.in index e25cdf22d..886195e06 100644 --- a/Tools/CMake/torqueConfig.h.in +++ b/Tools/CMake/torqueConfig.h.in @@ -41,6 +41,9 @@ /// Human readable application version string. #define TORQUE_APP_VERSION_STRING "@TORQUE_APP_VERSION_STRING@" +/// Define me if you want to enable Arcane FX support. +#cmakedefine TORQUE_AFX_ENABLED + /// Define me if you want to enable multithreading support. #cmakedefine TORQUE_MULTITHREAD