diff options
| author | Laurent Montel <montel@kde.org> | 2021-05-04 06:50:23 +0200 | 
|---|---|---|
| committer | Laurent Montel <montel@kde.org> | 2021-05-04 06:50:23 +0200 | 
| commit | 6e3e8519d6be03bb156fdafad04de396bec2f1c4 (patch) | |
| tree | 01293f2326f0b3017cee979a52ac5d015b254f54 | |
| parent | 122125452775fd67a59c0a34e1c9941bc15a8f8d (diff) | |
| download | kconfig-6e3e8519d6be03bb156fdafad04de396bec2f1c4.tar.gz kconfig-6e3e8519d6be03bb156fdafad04de396bec2f1c4.tar.bz2 | |
Fix cmake warning
"Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.
"
We need to add file extension
| -rw-r--r-- | autotests/CMakeLists.txt | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index f07bf557..121b530a 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -22,7 +22,7 @@ ecm_add_test(${kentrymaptest_SRCS}  target_include_directories(kentrymaptest PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../src/core)  # compile KConfigUtils into the test since it's not exported -set(test_kconfigutils_SRCS test_kconfigutils ../src/kconf_update/kconfigutils.cpp) +set(test_kconfigutils_SRCS test_kconfigutils.cpp ../src/kconf_update/kconfigutils.cpp)  ecm_add_test(${test_kconfigutils_SRCS}    TEST_NAME test_kconfigutils    LINK_LIBRARIES KF5::ConfigCore Qt5::Test @@ -31,18 +31,18 @@ target_include_directories(test_kconfigutils PRIVATE ../src/kconf_update)  qt5_add_resources(sharedconfigresources sharedconfigresources.qrc) -ecm_add_test(ksharedconfigtest ${sharedconfigresources} TEST_NAME kconfigcore-ksharedconfigtest LINK_LIBRARIES KF5::ConfigCore Qt5::Test Qt5::Concurrent) +ecm_add_test(ksharedconfigtest.cpp ${sharedconfigresources} TEST_NAME kconfigcore-ksharedconfigtest LINK_LIBRARIES KF5::ConfigCore Qt5::Test Qt5::Concurrent)  # test for fallback to :/kconfig/xxxx config resource  qt5_add_resources(fallbackconfigresources fallbackconfigresources.qrc) -ecm_add_test(fallbackconfigresourcestest ${fallbackconfigresources} TEST_NAME kconfigcore-fallbackconfigresourcestest LINK_LIBRARIES KF5::ConfigCore Qt5::Test Qt5::Concurrent) +ecm_add_test(fallbackconfigresourcestest.cpp ${fallbackconfigresources} TEST_NAME kconfigcore-fallbackconfigresourcestest LINK_LIBRARIES KF5::ConfigCore Qt5::Test Qt5::Concurrent)  ecm_add_tests(     kconfignokdehometest.cpp     kconfigtest.cpp     kdesktopfiletest.cpp     test_kconf_update.cpp -   ksharedconfig_in_global_object +   ksharedconfig_in_global_object.cpp     NAME_PREFIX kconfigcore-     LINK_LIBRARIES KF5::ConfigCore Qt5::Test Qt5::Concurrent  ) | 
