From 2b4a2dcb9e5d03e7de0d5e96f1b3d8affe27f707 Mon Sep 17 00:00:00 2001 From: Jonathan Stone Date: Wed, 18 Oct 2023 08:50:19 -0700 Subject: [PATCH] Minor refactor --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4de78fdda2..833d5f0ab5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -177,6 +177,9 @@ endif() if(MATERIALX_TEST_RENDER) add_definitions(-DMATERIALX_TEST_RENDER) endif() +if (MATERIALX_DYNAMIC_ANALYSIS) + add_definitions(-DMATERIALX_DYNAMIC_ANALYSIS) +endif() if (MATERIALX_BUILD_GEN_MDL) add_definitions(-DMATERIALX_MDLC_EXECUTABLE=\"${MATERIALX_MDLC_EXECUTABLE}\") @@ -186,11 +189,6 @@ if (MATERIALX_BUILD_GEN_MDL) add_definitions(-DMATERIALX_INSTALL_MDL_MODULE_PATH=\"${MATERIALX_INSTALL_MDL_MODULE_PATH}\") endif() -# Enable additional benchmark tests -if (MATERIALX_DYNAMIC_ANALYSIS) - add_definitions(-DMATERIALX_DYNAMIC_ANALYSIS) -endif() - # Adjust the default installation path if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/installed" CACHE PATH "Default install path" FORCE)