From 2836b3d1bdb32765950b8e3133a2452d8e7b98d2 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 13 Sep 2019 00:41:03 +0800 Subject: cmake: generate position independent code, add missing include dirs. --- smelt/glfw/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'smelt') diff --git a/smelt/glfw/CMakeLists.txt b/smelt/glfw/CMakeLists.txt index 73c2130..10a4120 100644 --- a/smelt/glfw/CMakeLists.txt +++ b/smelt/glfw/CMakeLists.txt @@ -16,6 +16,8 @@ set (SMELT_GLFW_CPP_FILES sys_glfw.cpp ) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + include_directories( ${GLEW_INCLUDE_DIRS} ) -- cgit v1.2.3