Build system fixes.
This commit is contained in:
parent
4be7463cb3
commit
1bdb2d64c9
|
@ -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)
|
||||
|
|
|
@ -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}")
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue
Block a user