From 882aef97616ed3f32427b36fa06184a78bf226c3 Mon Sep 17 00:00:00 2001 From: Jose Santiago Date: Thu, 20 Feb 2020 16:47:09 -0600 Subject: [PATCH] Do not put build artifacts in the source directory. --- build/cmake/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt index 0310fcc..8f3e803 100644 --- a/build/cmake/CMakeLists.txt +++ b/build/cmake/CMakeLists.txt @@ -214,9 +214,9 @@ if (APPLE) set (requireslib) endif () -configure_file (${GLEW_DIR}/glew.pc.in ${GLEW_DIR}/glew.pc @ONLY) +configure_file (${GLEW_DIR}/glew.pc.in ${CMAKE_CURRENT_BINARY_DIR}/glew.pc @ONLY) -install(FILES ${GLEW_DIR}/glew.pc +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/glew.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig )