VSMidl Test: Use correct include_directories with VS6 (#11461)

VS6 builds put midl output directly in CMAKE_CURRENT_BINARY_DIR.
Adjust test include_directories to match. Fixes test failure
on dashboard machine DASH3.
This commit is contained in:
David Cole 2011-01-06 09:10:35 -05:00
parent 262da91e26
commit e33cbda5c4
1 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
project(VSMidl) project(VSMidl)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/\$(IntDir)") if(MSVC_VERSION GREATER 1200)
include_directories("${CMAKE_CURRENT_BINARY_DIR}/\$(IntDir)")
else()
# midl generated headers end up directly in CMAKE_CURRENT_BINARY_DIR with
# VS6 builds.
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
endif()
add_executable(VSMidl main.cpp test.idl) add_executable(VSMidl main.cpp test.idl)