Skip to content

Commit

Permalink
Fix required CMake version when CMAKE_CXX_COMPILER_LAUNCHER is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
tokoro10g committed Nov 10, 2023
1 parent 2898060 commit 74b0f50
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
cmake_minimum_required(VERSION 3.10...3.22)
if(DEFINED CMAKE_CXX_COMPILER_LAUNCHER )
cmake_minimum_required(VERSION 3.17...3.22)
message("Using CXX Launcher: ${CMAKE_CXX_COMPILER_LAUNCHER}")
if( DEFINED ENV{CCACHE_DIR} )
message("Using CCACHE_DIR: $ENV{CCACHE_DIR}")
endif()
else()
cmake_minimum_required(VERSION 3.10...3.22)
endif()

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
Expand Down

0 comments on commit 74b0f50

Please sign in to comment.