diff options
author | José Fonseca <jfonseca@vmware.com> | 2014-07-08 22:09:21 +0900 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2014-07-08 22:10:52 +0900 |
commit | ee6e7320bb83409ebd4685fbd87a8ae033704182 (patch) | |
tree | fe449d42694fa08588f23d2b436efdae393863e0 /cli | |
parent | 7f9ec13a30f1b2cc8bdb1a199b7da54b9ab8860f (diff) |
cmake: Avoid target_compile_definitions.
So that it can be build with cmake 2.8.10.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index 9198a8f5..f1b71c1c 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -38,8 +38,8 @@ target_link_libraries (apitrace if (NOT CMAKE_CROSSCOMPILING) # On debug builds tell where the source is so that scripts can be found # http://www.cmake.org/cmake/help/v3.0/policy/CMP0043.html - target_compile_definitions (apitrace PRIVATE - $<$<CONFIG:Debug>:APITRACE_SOURCE_DIR="${CMAKE_SOURCE_DIR}"> + set_target_properties (apitrace PROPERTIES + COMPILE_DEFINITIONS $<$<CONFIG:Debug>:APITRACE_SOURCE_DIR="${CMAKE_SOURCE_DIR}"> ) endif () |