Skip to content

Commit

Permalink
Might have fixed it
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed Aug 13, 2023
1 parent 03e045f commit 3a020ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ project(librapid)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
cmake_policy(SET CMP0077 NEW)

if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
message(STATUS "[ LIBRAPID ] LibRapid is a top-level project. Using C++23")
set(CMAKE_CXX_STANDARD 23)
endif ()

# LibRapid requires C++20 or later
if (CMAKE_CXX_STANDARD LESS 20)
message(FATAL_ERROR "LibRapid requires C++20 or later")
Expand Down
5 changes: 0 additions & 5 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ function(make_test name)
target_link_libraries(test-${name} PRIVATE librapid)
disable_all_warnings(test-${name}) # Disable warnings for tests since they test unrealistic scenarios

target_compile_features(test-${name} PUBLIC cxx_std_23)
set_target_properties(test-${name} PROPERTIES CXX_STANDARD 23)
target_compile_options(librapid PUBLIC cxx_std_23)
set_target_properties(librapid PROPERTIES CXX_STANDARD 23)

message(STATUS "[ LIBRAPID ] Adding test ${name}")
add_test(NAME ${name}
COMMAND test-${name} -s --skip-benchmarks)
Expand Down

0 comments on commit 3a020ab

Please sign in to comment.