]> git.donarmstrong.com Git - kiibohd-controller.git/blobdiff - Lib/CMake/build.cmake
Adding support to Macro support to DPH
[kiibohd-controller.git] / Lib / CMake / build.cmake
index a58bc1f3f11952eed1f81d12aeebbe6034eac126..54f2fd2ea5822ed84c5321ec315f19069abc635f 100644 (file)
@@ -7,6 +7,16 @@
 ###
 
 
+###
+# Disable -Wl,-search_paths_first for AVR on OSX (not supported by avr-gcc)
+#
+
+if ( "${CPU}" STREQUAL "megaAVR" AND APPLE )
+       string ( REPLACE "-Wl,-search_paths_first" "" CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} )
+       string ( REPLACE "-Wl,-search_paths_first" "" CMAKE_CXX_LINK_FLAGS ${CMAKE_CXX_LINK_FLAGS} )
+endif ()
+
+
 
 ###
 # Build Targets