From caaeef2b56288b97813f50b12ed8e9a517fa8b9a Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Mon, 21 Feb 2022 15:17:23 +0100 Subject: [PATCH] Update CMakeLists.txt - Show a cmake-warning if assimp_view shall be build for linux / mac --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e6c18d91..695f90c31 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,12 +134,12 @@ OPTION ( ASSIMP_IGNORE_GIT_HASH OFF ) -IF ( WIN32 ) +IF (WIN32) # Use subset of Windows.h ADD_DEFINITIONS( -DWIN32_LEAN_AND_MEAN ) IF(MSVC) - OPTION ( ASSIMP_BUILD_ASSIMP_VIEW + OPTION (ASSIMP_BUILD_ASSIMP_VIEW "If the Assimp view tool is built. (requires DirectX)" OFF ) @@ -694,11 +694,13 @@ ENDIF() ADD_SUBDIRECTORY( code/ ) IF ( ASSIMP_BUILD_ASSIMP_TOOLS ) # The viewer for windows only - IF ( WIN32 ) + IF (WIN32) OPTION ( ASSIMP_BUILD_ASSIMP_VIEW "If the Assimp view tool is built. (requires DirectX)" OFF ) IF ( ASSIMP_BUILD_ASSIMP_VIEW ) ADD_SUBDIRECTORY( tools/assimp_view/ ) ENDIF () + ELSE() + MESSAGE("Building Assimp Viewer only supported on Windows.") ENDIF () # The command line tool ADD_SUBDIRECTORY( tools/assimp_cmd/ )