mirror of
https://github.com/clangen/musikcube.git
synced 2025-02-11 00:40:00 +00:00
Add some homebrew workarounds to build scripts.
This commit is contained in:
parent
b2652ad643
commit
c7dca8cfee
@ -27,12 +27,14 @@ include(ConfigureCurses)
|
|||||||
include(ConfigureCompilerFlags)
|
include(ConfigureCompilerFlags)
|
||||||
include(FindVendorLibrary)
|
include(FindVendorLibrary)
|
||||||
|
|
||||||
find_program(CCACHE_FOUND ccache)
|
if (NOT DEFINED ENV{HOMEBREW_PREFIX})
|
||||||
if (CCACHE_FOUND)
|
find_program(CCACHE_FOUND ccache)
|
||||||
message(STATUS "${BoldGreen}[ccache] ccache enabled!${ColorReset}")
|
if (CCACHE_FOUND)
|
||||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
message(STATUS "${BoldGreen}[ccache] ccache enabled!${ColorReset}")
|
||||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||||
endif(CCACHE_FOUND)
|
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
||||||
|
endif(CCACHE_FOUND)
|
||||||
|
endif()
|
||||||
|
|
||||||
if (CROSS_COMPILE_SYSROOT)
|
if (CROSS_COMPILE_SYSROOT)
|
||||||
message(STATUS "[cross-compile] enabled, rooted at: ${CROSS_COMPILE_SYSROOT}")
|
message(STATUS "[cross-compile] enabled, rooted at: ${CROSS_COMPILE_SYSROOT}")
|
||||||
|
@ -98,7 +98,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
if (NOT DEFINED ENV{NIX_CC})
|
if ((NOT DEFINED ENV{NIX_CC}) AND (NOT ${DISABLE_STATIC_NCURSES} MATCHES "true"))
|
||||||
message(STATUS "[ncurses] detected Darwin, linking statically")
|
message(STATUS "[ncurses] detected Darwin, linking statically")
|
||||||
set(CURSES_LIBRARY_NAME "lib${CURSES_LIBRARY_NAME}.a")
|
set(CURSES_LIBRARY_NAME "lib${CURSES_LIBRARY_NAME}.a")
|
||||||
set(PANEL_LIBRARY_NAME "lib${PANEL_LIBRARY_NAME}.a")
|
set(PANEL_LIBRARY_NAME "lib${PANEL_LIBRARY_NAME}.a")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user