From b73ca9eb89d7e78ed8ae64e5b447bab4f2b64aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Tue, 11 Oct 2011 06:37:38 +0000 Subject: [PATCH] Skipp budle fixing on windows when we do not build apps git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@428 fdac6126-5c0c-442c-9429-916003d36597 --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 565e2471..8611311a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,9 +23,15 @@ endif () # ======================================================================== # Add bundle targets here # ======================================================================== +if ( NOT DEFINED BUILD_APPS ) + set( BUILD_APPS true CACHE BOOL "Enable or disable building of apps" ) +endif() + if (WIN32) - add_custom_target (fixbundle ALL - COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/fixbundle.win.cmake" ) + if ( BUILD_APPS ) + add_custom_target (fixbundle ALL + COMMAND ${CMAKE_COMMAND} -P "${CMAKE_BINARY_DIR}/fixbundle.win.cmake" ) + endif() endif() if (APPLE)