From 1578efe366d6ec4697e27d1a7c681a00499d0aeb Mon Sep 17 00:00:00 2001 From: Dirk Olbrich Date: Tue, 13 Sep 2022 16:19:03 +0200 Subject: [PATCH] refactor conditional for 3ds Max SDK --- cmake/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 2ecf04495c..3f5d9528c9 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -1052,10 +1052,10 @@ if(NOT MINIMAL_BUILD AND BUILD_IFCMAX) endif() endforeach() - if(NOT HAS_MAX) - message(STATUS "Autodesk 3ds Max SDK not found, is required to build IFCMax.") - else() + if(HAS_MAX) add_subdirectory(../src/ifcmax ifcmax) + else() + message(STATUS "Autodesk 3ds Max SDK not found, is required to build IFCMax.") endif() endif()