auto find cpp compiler
This commit is contained in:
parent
8d8f39a2ff
commit
729a4a0a0c
@ -1,4 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
find_program(CMAKE_C_COMPILER NAMES $ENV{CC} gcc PATHS ENV PATH NO_DEFAULT_PATH)
|
||||
find_program(CMAKE_CXX_COMPILER NAMES $ENV{CXX} g++ PATHS ENV PATH NO_DEFAULT_PATH)
|
||||
project(owo)
|
||||
add_executable(owo src/main.cpp)
|
||||
add_subdirectory(src/clip-lib)
|
||||
|
Loading…
Reference in New Issue
Block a user