Skip to content

Commit

Permalink
audio/yoshimi: Not override port defaults for CMAKE_BUILD_TYPE and CX…
Browse files Browse the repository at this point in the history
…XFLAGS

PR:		266334
Reported by:	Daniel Engberg <diizzy@FreeBSD.org>
  • Loading branch information
yurivict committed Sep 11, 2022
1 parent 0098a01 commit 5a0f04a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions audio/yoshimi/files/patch-src_CMakeLists.txt
@@ -0,0 +1,20 @@
- disable override of port-defined CMAKE_BUILD_TYPE and CXXFLAGS

--- src/CMakeLists.txt.orig 2022-09-11 04:00:10 UTC
+++ src/CMakeLists.txt
@@ -263,6 +263,7 @@ else()
endif ()
set (CMAKE_CXX_FLAGS "${OurCxxFlags} ${CMAKE_CXX_FLAGS}")

+if (FALSE)
if (BuildForDebug)
set (CMAKE_BUILD_TYPE "Debug")
set (CMAKE_CXX_FLAGS_DEBUG ${BuildOptionsDebug})
@@ -271,6 +272,7 @@ else()
set (CMAKE_BUILD_TYPE "Release")
set (CMAKE_CXX_FLAGS_RELEASE ${BuildOptionsRelease})
message (STATUS "RELEASE Build, flags: ${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}")
+endif ()
endif ()

configure_file(

0 comments on commit 5a0f04a

Please sign in to comment.