Build system fixes.
This commit is contained in:
parent
4be7463cb3
commit
1bdb2d64c9
|
@ -15,7 +15,7 @@ include(Doxycelli)
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
add_compile_options(/W4 /WX)
|
add_compile_options(/W4 /WX)
|
||||||
else()
|
else()
|
||||||
add_compile_options(-Wall -Wextra -pedantic -Werror)
|
add_compile_options(-Wall -Wextra -pedantic -Werror -Wno-unused-parameter)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
find_program(RAGEL_EXECUTABLE ragel)
|
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.")
|
message(FATAL_ERROR "Please install ragel to compile Monicelli.")
|
||||||
else()
|
else()
|
||||||
message(STATUS "Found Ragel: ${RAGEL_EXECUTABLE}")
|
message(STATUS "Found Ragel: ${RAGEL_EXECUTABLE}")
|
||||||
|
|
|
@ -39,6 +39,10 @@ set_target_properties(mcc lexer
|
||||||
CXX_STANDARD_REQUIRED true
|
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)
|
target_link_libraries(mcc PRIVATE lexer)
|
||||||
|
|
||||||
llvm_config(mcc
|
llvm_config(mcc
|
||||||
|
|
Reference in New Issue
Block a user