mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-18 21:14:35 +03:00
[CMake] Include GNUInstallDirs after project()
This commit is contained in:
@@ -10,15 +10,15 @@ if(POLICY CMP0092)
|
|||||||
cmake_policy(SET CMP0092 NEW) # Don't add -W3 warning level by default.
|
cmake_policy(SET CMP0092 NEW) # Don't add -W3 warning level by default.
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(CheckCXXCompilerFlag)
|
|
||||||
include(GNUInstallDirs)
|
|
||||||
|
|
||||||
# Don't create a project if it was already created by another CMakeLists.txt.
|
# 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.
|
# This allows one library to embed another library without making a collision.
|
||||||
if (NOT CMAKE_PROJECT_NAME OR "${CMAKE_PROJECT_NAME}" STREQUAL "asmjit")
|
if (NOT CMAKE_PROJECT_NAME OR "${CMAKE_PROJECT_NAME}" STREQUAL "asmjit")
|
||||||
project(asmjit CXX)
|
project(asmjit CXX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
include(CheckCXXCompilerFlag)
|
||||||
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# [AsmJit - Deprecated]
|
# [AsmJit - Deprecated]
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user