mirror of
https://git.freebsd.org/ports.git
synced 2025-06-15 09:40:35 -04:00
20 lines
646 B
Text
20 lines
646 B
Text
--- CMakeLists.txt.orig 2016-05-09 13:04:04 UTC
|
|
+++ CMakeLists.txt
|
|
@@ -213,7 +213,7 @@ else()
|
|
|
|
# On FreeBSD 64 math.h uses unguarded C11 extension, which taints clang
|
|
# 3.4.1 used there.
|
|
- if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
|
+ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
add_definitions(-Wno-c11-extensions)
|
|
endif()
|
|
endif()
|
|
@@ -367,7 +367,7 @@ endforeach()
|
|
|
|
# Find Lua interpreter
|
|
include(LuaHelpers)
|
|
-set(LUA_DEPENDENCIES lpeg mpack bit)
|
|
+set(LUA_DEPENDENCIES lpeg bit)
|
|
if(NOT LUA_PRG)
|
|
foreach(CURRENT_LUA_PRG luajit lua)
|
|
# If LUA_PRG is set find_program() will not search
|