barbieri pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=51307b7cdc0cc45442bf88d5cd772752910bbb09

commit 51307b7cdc0cc45442bf88d5cd772752910bbb09
Author: Gustavo Sverzut Barbieri <[email protected]>
Date:   Thu Jan 26 13:54:19 2017 -0200

    cmake: fix test include and defines.
    
    TESTS_WD is prefixed to TESTS_SRC_DIR and should be empty (no idea why
    it's like that, maybe to allow relative paths).
    
    TESTS_SRC_DIR must be defined to test source directory and a typo was
    preventing that.
---
 cmake/helpers/EflMacros.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
index b2630a8..fa64750 100644
--- a/cmake/helpers/EflMacros.cmake
+++ b/cmake/helpers/EflMacros.cmake
@@ -1169,7 +1169,7 @@ function(EFL_TEST _testname)
   endif()
 
   target_include_directories(${_testtarget} PRIVATE
-    ${_testrcdir}
+    ${_testsrcdir}
     ${_testbindir}
     ${INCLUDE_DIRECTORIES})
   target_include_directories(${_testtarget} SYSTEM PRIVATE
@@ -1182,9 +1182,9 @@ function(EFL_TEST _testname)
 
   target_compile_definitions(${_testtarget} PRIVATE
     "-DPACKAGE_DATA_DIR=\"${EFL_TESTS_SOURCE_DIR}\""
-    "-DTESTS_SRC_DIR=\"${_testrcdir}\""
+    "-DTESTS_SRC_DIR=\"${_testsrcdir}\""
     "-DTESTS_BUILD_DIR=\"${_testbindir}\""
-    "-DTESTS_WD=\"${PROJECT_BINARY_DIR}\""
+    "-DTESTS_WD=\"\""
     ${DEFINITIONS}
     )
 

-- 


Reply via email to