summaryrefslogtreecommitdiffstats
path: root/Tests/VSMidl/src
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/VSMidl/src')
-rw-r--r--Tests/VSMidl/src/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/Tests/VSMidl/src/CMakeLists.txt b/Tests/VSMidl/src/CMakeLists.txt
index 28bb120..86c04ed 100644
--- a/Tests/VSMidl/src/CMakeLists.txt
+++ b/Tests/VSMidl/src/CMakeLists.txt
@@ -1,5 +1,12 @@
cmake_minimum_required(VERSION 2.8)
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)