From a281426ca6449d683139a7d7188c90e31901b7c6 Mon Sep 17 00:00:00 2001 From: kobalicek Date: Wed, 7 Oct 2020 16:50:42 +0200 Subject: [PATCH] [CMake] Include GNUInstallDirs after project() --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc0b512..57d9767 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,15 +10,15 @@ if(POLICY CMP0092) cmake_policy(SET CMP0092 NEW) # Don't add -W3 warning level by default. endif() -include(CheckCXXCompilerFlag) -include(GNUInstallDirs) - # Don't create a project if it was already created by another CMakeLists.txt. # This allows one library to embed another library without making a collision. if (NOT CMAKE_PROJECT_NAME OR "${CMAKE_PROJECT_NAME}" STREQUAL "asmjit") project(asmjit CXX) endif() +include(CheckCXXCompilerFlag) +include(GNUInstallDirs) + # ============================================================================= # [AsmJit - Deprecated] # =============================================================================