From 100b838fb6d294b6dbee07ac83b9b4ba430df592 Mon Sep 17 00:00:00 2001 From: Davide Gerhard Date: Thu, 9 May 2019 08:31:40 +0200 Subject: [PATCH] fix CMAKE_BUILD_TYPE for MacPorts --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ca713148..3ca673264 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,7 +89,9 @@ set(CPACK_SOURCE_IGNORE_FILES "${PROJECT_BINARY_DIR};/.git/;.gitignore;menu.yml; set(CPACK_SOURCE_GENERATOR "ZIP;TGZ") # if we don't set build_type -if(NOT DEFINED CMAKE_BUILD_TYPE OR "${CMAKE_BUILD_TYPE}" STREQUAL "") +if(NOT DEFINED CMAKE_BUILD_TYPE OR + "${CMAKE_BUILD_TYPE}" STREQUAL "" OR + "${CMAKE_BUILD_TYPE}" STREQUAL "MacPorts") set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE) endif() message(STATUS "Build type set to ${CMAKE_BUILD_TYPE}")