CMake express the "greater or equal" statement -


i know in cmake can check compiler version this

if(msvc_version less 1700) ... // msvc lower msvc2012 

but how express in cmake syntax?

if(msvc_version greater_or_equal_to 1700) ... // msvc greater or equal msvc2012 

update cmake 3.7 , later:

cmake 3.7 introduced couple of new comparisons if, among them greater_equal:

if(msvc_version greater_equal 1700)     [...] 

original answer older cmake versions:

if((msvc_version greater 1700) or (msvc_version equal 1700))   [...] 

or better, avoids repeating condition:

if(not (msvc_version less 1700))   [...] 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -