diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-08-17 20:53:35 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-08-17 20:53:35 (GMT) |
commit | 301114994773e62b82965f3082fef6dd23532e60 (patch) | |
tree | 4cf457f8447d655a706f087f9760aaa5d955b708 /Tests/FindPackageModeMakefileTest | |
parent | ab57ff6156a725664fce995a9460de839018405c (diff) | |
download | CMake-301114994773e62b82965f3082fef6dd23532e60.zip CMake-301114994773e62b82965f3082fef6dd23532e60.tar.gz CMake-301114994773e62b82965f3082fef6dd23532e60.tar.bz2 |
Make the test harder by always having a space in the include dirs
The commit message for the previous commit was wrong, it should
have been: fix the test by using $(shell ...) syntax instead
of backticks in the Makefile.
With backticks I couldn't get the quoting right.
Printing -I"/some/path with space" did not work, the compiler
complained that there is not file "with". Also backslashes in
different numbers did not make it work.
Alex
Diffstat (limited to 'Tests/FindPackageModeMakefileTest')
-rw-r--r-- | Tests/FindPackageModeMakefileTest/FindFoo.cmake.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Tests/FindPackageModeMakefileTest/FindFoo.cmake.in b/Tests/FindPackageModeMakefileTest/FindFoo.cmake.in index c6230ab..dc62bac 100644 --- a/Tests/FindPackageModeMakefileTest/FindFoo.cmake.in +++ b/Tests/FindPackageModeMakefileTest/FindFoo.cmake.in @@ -3,6 +3,7 @@ find_library(FOO_LIBRARY NAMES foo HINTS "@CMAKE_CURRENT_BINARY_DIR@" ) find_path(FOO_INCLUDE_DIR NAMES foo.h HINTS "@CMAKE_CURRENT_SOURCE_DIR@" ) set(FOO_LIBRARIES ${FOO_LIBRARY}) +set(FOO_INCLUDE_DIRS "${FOO_INCLUDE_DIR}" "/some/path/with a space/include" ) include(FindPackageHandleStandardArgs) find_package_handle_standard_args(Foo DEFAULT_MSG FOO_LIBRARY FOO_INCLUDE_DIR ) |