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
Post a Comment