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)