Build system fixes.

This commit is contained in:
Stefano Sanfilippo 2019-12-09 18:44:36 +01:00
parent 4be7463cb3
commit 1bdb2d64c9
3 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,7 @@ include(Doxycelli)
if (MSVC)
add_compile_options(/W4 /WX)
else()
add_compile_options(-Wall -Wextra -pedantic -Werror)
add_compile_options(-Wall -Wextra -pedantic -Werror -Wno-unused-parameter)
endif()
add_subdirectory(src)

View File

@ -3,7 +3,7 @@
find_program(RAGEL_EXECUTABLE ragel)
if (${RAGEL_EXECUTABLE} STREQUAL "RAGEL-NOTFOUND")
if (${RAGEL_EXECUTABLE} STREQUAL "RAGEL_EXECUTABLE-NOTFOUND")
message(FATAL_ERROR "Please install ragel to compile Monicelli.")
else()
message(STATUS "Found Ragel: ${RAGEL_EXECUTABLE}")

View File

@ -39,6 +39,10 @@ set_target_properties(mcc lexer
CXX_STANDARD_REQUIRED true
)
target_include_directories(mcc PRIVATE ${LLVM_INCLUDE_DIRS})
target_compile_definitions(mcc PRIVATE ${LLVM_DEFINITIONS})
target_link_libraries(mcc PRIVATE lexer)
llvm_config(mcc