From 5dcb9332da7d27836765ba9b43f81e4246293358 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Sat, 9 Aug 2014 22:33:09 +0430 Subject: [PATCH] Use CMAKE_BINARY_DIR instead CMAKE_SOURCE_DIR --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dd509a..cca103e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,9 +5,9 @@ SET( SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src ) SET( INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include ) SET( RC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build ) -SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib ) -SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib ) -SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin ) +SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib ) +SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib ) +SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin ) OPTION( glew-cmake_BUILD_SHARED "Build the shared glew library" ON) OPTION( glew-cmake_BUILD_STATIC "Build the static glew library" ON)