Skip to content

Commit

Permalink
chore: update c++ 20!
Browse files Browse the repository at this point in the history
  • Loading branch information
tootal committed Jan 12, 2024
1 parent 060d8d7 commit 3ad69c3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ target_compile_definitions(${MODULE_NAME}
CMAKE_CXX_COMPILER_VERSION="${CMAKE_CXX_COMPILER_VERSION}"
)

target_compile_features(${MODULE_NAME}
PUBLIC
cxx_std_20
)

set_target_properties(${MODULE_NAME}
PROPERTIES
CXX_EXTENSIONS OFF
)

list(TRANSFORM QT_COMPONENTS PREPEND Qt${QT_VERSION_MAJOR}::)
# message(STATUS "QT_COMPONENTS ${QT_COMPONENTS}")
target_link_libraries(${MODULE_NAME}
Expand Down

0 comments on commit 3ad69c3

Please sign in to comment.