Skip to content
Snippets Groups Projects
Commit d1da0743 authored by Mathieu Peybernes's avatar Mathieu Peybernes
Browse files

update Cmake

parent c59feb12
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 2.8.11)
project (SAXPY)
set(CMAKE_VERBOSE_MAKEFILE ON)
# Since different compilers support different options, a typical use of this command is in a compiler-specific conditional clause:
# compiler-specific conditional clause:
if (CMAKE_CXX_COMPILER_ID STREQUAL "Intel") # using Intel C++
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_options(-Wall -Wextra -pedantic -Werror -O3) # using GCC
......@@ -16,7 +16,6 @@ file(GLOB SOURCES "${PROJECT_SOURCE_DIR}/src/*.c")
add_library (saxpy ${SOURCES})
# Make sure the compiler can find include files for our saxpy library
# when other libraries or executables link to Hello
target_include_directories (saxpy PUBLIC ${PROJECT_SOURCE_DIR}/include)
# Create executable called "exec" that is built from the source file
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment