summaryrefslogtreecommitdiff
path: root/cmake/helpers/EflMacros.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-26 13:54:19 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-26 14:23:24 -0200
commit51307b7cdc0cc45442bf88d5cd772752910bbb09 (patch)
tree631d77b25d00c2af9dbdc85d066e9d94d613b296 /cmake/helpers/EflMacros.cmake
parentb67acda0d626bde9235d49b4ca045e083db855a2 (diff)
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.
Diffstat (limited to 'cmake/helpers/EflMacros.cmake')
-rw-r--r--cmake/helpers/EflMacros.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
index b2630a8a07..fa647508b5 100644
--- a/cmake/helpers/EflMacros.cmake
+++ b/cmake/helpers/EflMacros.cmake
@@ -1169,7 +1169,7 @@ function(EFL_TEST _testname)
1169 endif() 1169 endif()
1170 1170
1171 target_include_directories(${_testtarget} PRIVATE 1171 target_include_directories(${_testtarget} PRIVATE
1172 ${_testrcdir} 1172 ${_testsrcdir}
1173 ${_testbindir} 1173 ${_testbindir}
1174 ${INCLUDE_DIRECTORIES}) 1174 ${INCLUDE_DIRECTORIES})
1175 target_include_directories(${_testtarget} SYSTEM PRIVATE 1175 target_include_directories(${_testtarget} SYSTEM PRIVATE
@@ -1182,9 +1182,9 @@ function(EFL_TEST _testname)
1182 1182
1183 target_compile_definitions(${_testtarget} PRIVATE 1183 target_compile_definitions(${_testtarget} PRIVATE
1184 "-DPACKAGE_DATA_DIR=\"${EFL_TESTS_SOURCE_DIR}\"" 1184 "-DPACKAGE_DATA_DIR=\"${EFL_TESTS_SOURCE_DIR}\""
1185 "-DTESTS_SRC_DIR=\"${_testrcdir}\"" 1185 "-DTESTS_SRC_DIR=\"${_testsrcdir}\""
1186 "-DTESTS_BUILD_DIR=\"${_testbindir}\"" 1186 "-DTESTS_BUILD_DIR=\"${_testbindir}\""
1187 "-DTESTS_WD=\"${PROJECT_BINARY_DIR}\"" 1187 "-DTESTS_WD=\"\""
1188 ${DEFINITIONS} 1188 ${DEFINITIONS}
1189 ) 1189 )
1190 1190