summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-05-31 14:18:15 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2013-06-07 14:46:23 +0300
commit7e27fdee6c931728c79d348b94f0258081fdf607 (patch)
treeef766340601feb6bc6e41bb072680e2815f9b1ca
parentacc84140425f122ab0bdb3a7fd8efb01ec931acc (diff)
tests/compilation: Pass the TARGET_LINKER_FILE to the compilation tests
On linux it doesn't matter, but on windows the linker is picky. TARGET_FILE expands to the .dll, which is useless for the linker; it requires the .lib/.a file instead.
-rw-r--r--tests/compilation/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/compilation/CMakeLists.txt b/tests/compilation/CMakeLists.txt
index 064967a..0621ffd 100644
--- a/tests/compilation/CMakeLists.txt
+++ b/tests/compilation/CMakeLists.txt
@@ -1,8 +1,8 @@
add_test(NAME compilation_tests
COMMAND ${CMAKE_COMMAND}
-DQT_VERSION=${QT_VERSION}
- -DQTGLIB_LIBRARY=$<TARGET_FILE:${QTGLIB_LIBRARY}>
- -DQTGSTREAMER_LIBRARY=$<TARGET_FILE:${QTGSTREAMER_LIBRARY}>
+ -DQTGLIB_LIBRARY=$<TARGET_LINKER_FILE:${QTGLIB_LIBRARY}>
+ -DQTGSTREAMER_LIBRARY=$<TARGET_LINKER_FILE:${QTGSTREAMER_LIBRARY}>
-DQTGSTREAMER_INCLUDE_DIR=${QTGSTREAMER_INCLUDE_DIR}
-DQTGSTREAMER_STATIC=${QTGSTREAMER_STATIC}
-DCMAKE_MODULE_PATH=${CMAKE_MODULE_PATH}