Skip to content

Commit

Permalink
using cmake varialbe to set cmake defaults path
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed May 6, 2024
1 parent dc3b562 commit 7e77ea9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Preamble

cmake_minimum_required(VERSION 3.17)
set(CMAKE_USER_MAKE_RULES_OVERRIDE "cmake/set_defaults.cmake")

project(
tuv-x
Expand All @@ -13,6 +12,8 @@ project(
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${PROJECT_SOURCE_DIR}/cmake")

set(CMAKE_USER_MAKE_RULES_OVERRIDE "${PROJECT_SOURCE_DIR}/cmake/set_defaults.cmake")

message ( STATUS "CMake build configuration for tuv-x(${CMAKE_BUILD_TYPE}) ${PROJECT_VERSION}" )

if(${CMAKE_VERSION} VERSION_LESS "3.21")
Expand Down

0 comments on commit 7e77ea9

Please sign in to comment.