diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2011-06-02 14:28:10 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2011-06-02 14:28:10 (GMT) |
commit | 7815e90e21049cb06ecbdbe8ed44aa008aa9d6f4 (patch) | |
tree | c326e90b7c2563285951f39e0f26909b15e87b14 /Tests/IncludeDirectories/CMakeLists.txt | |
parent | 5764739f52095d6be5bb8d105335c58974ee40ec (diff) | |
download | CMake-7815e90e21049cb06ecbdbe8ed44aa008aa9d6f4.zip CMake-7815e90e21049cb06ecbdbe8ed44aa008aa9d6f4.tar.gz CMake-7815e90e21049cb06ecbdbe8ed44aa008aa9d6f4.tar.bz2 |
Fix for bug#10798. VS10 did not append -I flags with COMPILE_FLAGS prop.
This fix adds a test for this case for all generators.
Diffstat (limited to 'Tests/IncludeDirectories/CMakeLists.txt')
-rw-r--r-- | Tests/IncludeDirectories/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/IncludeDirectories/CMakeLists.txt b/Tests/IncludeDirectories/CMakeLists.txt new file mode 100644 index 0000000..af2a2b7 --- /dev/null +++ b/Tests/IncludeDirectories/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required (VERSION 2.6) +project(IncludeDirectories) + +set(CMAKE_CXX_FLAGS "\"-I${CMAKE_SOURCE_DIR}/Flags\"") +include_directories(${CMAKE_SOURCE_DIR}/IncDir) +set_source_files_properties(main.cpp PROPERTIES COMPILE_FLAGS + "\"-I${CMAKE_SOURCE_DIR}/SrcProp\"") +add_executable(IncludeDirectories main.cpp) +set_target_properties(IncludeDirectories + PROPERTIES COMPILE_FLAGS "\"-I${CMAKE_SOURCE_DIR}/TarProp\"") |