Checking how CMake tags different C++ compilers -


since must link different version of libraries depending on compiler, trying figure out how cmake tags different compilers, can write appropriate conditionals. therefore have put these lines @ top of cmakelists.txt:

cmake_minimum_required(version 3.2)  message(status "using ${cmake_cxx_compiler_id} ${cmake_cxx_compiler_version}") 

but above lines print just:

-- using 

you have check c++ compiler first. can either add

project(myproject cxx) 

or

check_language(cxx) 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -