From 6fdfa97edba9bd05d7c4d5e0cfe0bb81a99f5701 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 31 Dec 2010 04:29:11 +0000 Subject: CMake: use blender_include_dirs("${OPENGL_INCLUDE_DIR}") rather then blender_include_dirs(${OPENGL_INCLUDE_DIR}) Apparently this is needed for MSVC in some cases, reported by Tamito Kajiyama r33895. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index c1e22f9ab0f..304c17244d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -690,7 +690,7 @@ elseif(WIN32) endif() # used in many places so include globally, like OpenGL - blender_include_dirs(${PTHREADS_INC}) + blender_include_dirs("${PTHREADS_INC}") elseif(APPLE) @@ -946,9 +946,9 @@ endif() # Configure OpenGL. find_package(OpenGL) if(MSVC) - include_directories(${OPENGL_INCLUDE_DIR}) + include_directories("${OPENGL_INCLUDE_DIR}") else() - blender_include_dirs(${OPENGL_INCLUDE_DIR}) + blender_include_dirs("${OPENGL_INCLUDE_DIR}") endif() # unset(OPENGL_LIBRARIES CACHE) # not compat with older cmake # unset(OPENGL_xmesa_INCLUDE_DIR CACHE) # not compat with older cmake -- cgit v1.2.3