[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kmymoney] kmymoney/models: Fixed compile error under certain configurations
From: Christian_Dávid <null () kde ! org>
Date: 2017-12-03 22:14:58
Message-ID: E1eLcXK-0000sf-9B () code ! kde ! org
[Download RAW message or body]
Git commit fcb0c3768b8ad1398416a94152503271c5376c3e by Christian D=C3=A1vid.
Committed on 03/12/2017 at 22:12.
Pushed by christiand into branch 'master'.
Fixed compile error under certain configurations
A previous commit caused an compile error if the option USE_MODELTEST
is set but set to "OFF" in CMake.
Improves 37ea0cb9fd3aa0f6521b8e745c2c3ab288241e91
M +4 -1 kmymoney/models/CMakeLists.txt
https://commits.kde.org/kmymoney/fcb0c3768b8ad1398416a94152503271c5376c3e
diff --git a/kmymoney/models/CMakeLists.txt b/kmymoney/models/CMakeLists.txt
index 713e0b90..49928e8c 100644
--- a/kmymoney/models/CMakeLists.txt
+++ b/kmymoney/models/CMakeLists.txt
@@ -19,9 +19,12 @@ set(libmodels_a_SOURCES
onlinejobmessagesmodel.cpp
equitiesmodel.cpp
securitiesmodel.cpp
- $<$<BOOL:"${USE_MODELTEST}">:modeltest.cpp>
)
=
+if (USE_MODELTEST)
+ list(APPEND libmodels_a_SOURCES modeltest.cpp)
+endif()
+
add_library(models STATIC ${libmodels_a_SOURCES})
=
target_link_libraries(models PUBLIC
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic