set correct cmake version in check

This commit is contained in:
Davis King 2023-03-25 15:56:54 -04:00
parent 53d2ceb669
commit 049c59d0f6
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(-Wno-free-nonheap-object)
endif()
if(${CMAKE_VERSION} VERSION_GREATER "3.8.0")
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.13.0")
# strip debug symbols to make the binary smaller
target_link_options(${target_name} PRIVATE $<$<CONFIG:RELEASE>:-s>)
endif()

View File

@ -107,7 +107,7 @@ macro(add_example name)
add_executable(${name} ${name}.cpp)
target_link_libraries(${name} dlib::dlib )
if(${CMAKE_VERSION} VERSION_GREATER "3.8.0")
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.13.0")
# And strip symbols to make your binary smaller if you like. Certainly not
# required though.
target_link_options(${name} PRIVATE $<$<CONFIG:RELEASE>:-s>)