mirror of https://github.com/davisking/dlib.git
set correct cmake version in check
This commit is contained in:
parent
53d2ceb669
commit
049c59d0f6
|
@ -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()
|
||||
|
|
|
@ -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>)
|
||||
|
|
Loading…
Reference in New Issue