Skip to content

Commit

Permalink
Merge pull request #69 from michael-kenzel/fix-build
Browse files Browse the repository at this point in the history
add missing target properties and include dirs
  • Loading branch information
m-kurtenacker authored Jul 4, 2024
2 parents 6309ca9 + 40b6373 commit 83d2082
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,14 @@ set (RV_SOURCES
# endif()

add_library( RV ${RV_SOURCES} ${RV_HEADER_FILES} ${RV_SLEEF_OBJECTS} )
set_target_properties(RV PROPERTIES
CXX_STANDARD 17
CXX_STANDARD_REQUIRED True
CXX_EXTENSIONS Off
)
target_include_directories( RV SYSTEM PRIVATE ${LLVM_INCLUDE_DIRS} )
target_include_directories( RV PRIVATE ${RV_SOURCE_DIR}/include ${RV_SOURCE_DIR}/src )
target_include_directories( RV PRIVATE ${RV_SOURCE_DIR}/src )
target_include_directories( RV PUBLIC ${RV_SOURCE_DIR}/include )

llvm_config(RV ${RV_LLVM_LINK_SHARED} core analysis)

Expand Down

0 comments on commit 83d2082

Please sign in to comment.