File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ target_include_directories(SQLiteCpp PRIVATE
196
196
)
197
197
target_link_libraries (SQLiteCpp PUBLIC sqlite3)
198
198
harden(SQLiteCpp)
199
+ set_property (TARGET SQLiteCpp PROPERTY CXX_STANDARD 20)
199
200
200
201
if (UNIX AND (CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" ))
201
202
set_target_properties (SQLiteCpp PROPERTIES COMPILE_FLAGS "-fPIC" )
@@ -275,6 +276,7 @@ if (SQLITECPP_BUILD_EXAMPLES)
275
276
# add the basic example executable
276
277
add_executable (SQLiteCpp_example1 ${SQLITECPP_EXAMPLES} )
277
278
target_link_libraries (SQLiteCpp_example1 SQLiteCpp)
279
+ set_property (TARGET SQLiteCpp_example1 PROPERTY CXX_STANDARD 20)
278
280
harden(SQLiteCpp_example1)
279
281
280
282
# Link target with pthread and dl for linux
@@ -327,7 +329,7 @@ if (SQLITECPP_BUILD_TESTS)
327
329
target_include_directories (SQLiteCpp_tests PRIVATE "${GTEST_INCLUDE_DIR} " "${sqlite3_AMALGAMATION_SOURCE_DIR} " )
328
330
target_link_libraries (SQLiteCpp_tests "${GTEST_LIBRARY} " "${GTEST_MAIN_LIBRARY} " SQLiteCpp sqlite3)
329
331
harden(SQLiteCpp_tests)
330
-
332
+ set_property ( TARGET SQLiteCpp_tests PROPERTY CXX_STANDARD 20)
331
333
# Link target with dl for linux
332
334
if (UNIX AND NOT APPLE )
333
335
target_link_libraries (SQLiteCpp_tests dl)
You can’t perform that action at this time.
0 commit comments