Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slight improvements to the build system #1

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ project(ctbench)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 20)
link_libraries(stdc++fs)

option(CTBENCH_ENABLE_TESTING "Enable testing for ctbench components." OFF)

Expand Down
2 changes: 2 additions & 0 deletions grapher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ find_package(LLVM REQUIRED CONFIG)
llvm_map_components_to_libnames(llvm_libs support)
include_directories(${LLVM_INCLUDE_DIRS})
link_libraries(${llvm_libs})
# LLVM libraries are compiled without RTTI
add_compile_options(-fno-rtti)

# External libraries
include(cmake/external_libraries.cmake)
Expand Down
6 changes: 4 additions & 2 deletions grapher/cmake/external_libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ set(JSON_CI OFF)

FetchContent_Declare(json_content
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG v3.9.1)
GIT_TAG v3.9.1
GIT_SHALLOW TRUE)

FetchContent_MakeAvailable(json_content)

Expand All @@ -23,7 +24,8 @@ link_libraries(nlohmann_json::nlohmann_json)

FetchContent_Declare(sciplot_content
GIT_REPOSITORY https://github.com/sciplot/sciplot.git
GIT_TAG master)
GIT_TAG master
GIT_SHALLOW TRUE)

FetchContent_GetProperties(sciplot_content)
if(NOT sciplot_content_POPULATED)
Expand Down