update CMakeLists.txt for CMake 3.5

This commit is contained in:
tildearrow 2023-09-21 20:20:38 -05:00
parent cb63314f53
commit 7b73991c12

View file

@ -970,7 +970,7 @@ if (PKG_CONFIG_FOUND AND (SYSTEM_FMT OR SYSTEM_LIBSNDFILE OR SYSTEM_ZLIB OR SYST
endif() endif()
# why 3.16..... why not 3.0? # why 3.16..... why not 3.0?
if (CMAKE_MAJOR_VERSION GREATER_EQUAL 3 AND CMAKE_MINOR_VERSION GREATER_EQUAL 16) if (NOT "${CMAKE_VERSION}" VERSION_LESS "3.16")
if (BUILD_GUI) if (BUILD_GUI)
target_precompile_headers(furnace PUBLIC target_precompile_headers(furnace PUBLIC
$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/src/pch.h> $<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/src/pch.h>