Browse Source

Replace two include_directories with a setting.

Stephen Kelly 13 years ago
parent
commit
066e85893f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Source/QtDialog/CMakeLists.txt

+ 1 - 2
Source/QtDialog/CMakeLists.txt

@@ -66,8 +66,7 @@ if(APPLE)
     MACOSX_PACKAGE_LOCATION Resources)
 endif()
 
-include_directories(${CMAKE_CURRENT_BINARY_DIR})
-include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 add_executable(cmake-gui WIN32 MACOSX_BUNDLE ${SRCS})
 target_link_libraries(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES})