Merge pull request #316 from aciidb0mb3r/set-libdir-path

[CMake] Set libdir path after including gnu
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b7383e..ed53167 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,7 +11,6 @@
 set(CMAKE_C_VISIBILITY_PRESET hidden)
 set(CMAKE_CXX_STANDARD 11)
 
-set(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Path where the libraries should be installed")
 set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
 set(THREADS_PREFER_PTHREAD_FLAG TRUE)
 find_package(Threads REQUIRED)
@@ -23,6 +22,7 @@
 include(CheckSymbolExists)
 include(GNUInstallDirs)
 
+set(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Path where the libraries should be installed")
 set(WITH_BLOCKS_RUNTIME "" CACHE PATH "Path to blocks runtime")
 
 include(DispatchAppleOptions)