-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Milestone
Description
Consider adding compiler detection, because not everyone may have GCC C++ compilers installed..
# Check for Clang compiler
if(CMAKE_CXX_COMPILER_IS_CLANG)
message(STATUS "C++ compiler: Clang++/LLVM")
# Set compiler specific flags here (optional)
endif()
# Check for GCC compiler
if(CMAKE_COMPILER_IS_GNU)
message(STATUS "C++ compiler: g++")
# Set compiler specific flags here (optional)
endif()Also could make a toolchain file.
Use the CMAKE_TOOLCHAIN_FILE variable to specify different toolchain files for each platform (Windows, Linux, etc.) and various compilers. These files define compiler paths and flags.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Projects
Status
Ready