Skip to content

Commit

Permalink
set which compilier according to OS
Browse files Browse the repository at this point in the history
  • Loading branch information
pd3v committed Aug 19, 2024
1 parent 19403a7 commit fca6157
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
cmake_minimum_required(VERSION 3.19.2)

set(CMAKE_CXX_STANDARD 17)

if(APPLE)
#set(CMAKE_C_COMPILER /usr/bin/clang)
#set(CMAKE_CXX_COMPILER /usr/bin/clang++)
#set(CMAKE_C_COMPILER /opt/local/libexec/llvm-10/bin/clang)
#set(CMAKE_CXX_COMPILER /opt/local/libexec/llvm-10/bin/clang++)
set(CMAKE_C_COMPILER /opt/local/libexec/llvm-10/bin/clang)
set(CMAKE_CXX_COMPILER /opt/local/libexec/llvm-10/bin/clang++)
endif(APPLE)

if(LINUX)
#set(CMAKE_C_COMPILER /usr/bin/gcc)
#set(CMAKE_CXX_COMPILER /usr/bin/g++)
set(CMAKE_C_COMPILER /usr/bin/gcc)
set(CMAKE_CXX_COMPILER /usr/bin/g++)
endif(LINUX)

project(line VERSION 0.7)
Expand Down

0 comments on commit fca6157

Please # to comment.