diff options
author | 2015-12-18 17:08:35 +0100 | |
---|---|---|
committer | 2015-12-18 17:08:35 +0100 | |
commit | a60988dad78ea22041771a9f40ed7e8f4c63b816 (patch) | |
tree | 14d5bc50501ced7f3faf79c5267f99478e49d6b4 /src | |
parent | a8c5306b1d0ac21bd745ae553f59c6eb189e04a4 (diff) |
fix directories and options
Change-Id: I83c0a65248faaecf8a1b2270003bd0cbd519794a
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0512206..8bd7863 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -39,13 +39,13 @@ include_directories(simulation) add_compile_options(-Wall -Wno-pointer-sign) add_compile_options(-ffunction-sections -fdata-sections) +add_compile_options(-fPIC) add_compile_options(-Wl,--gc-sections) -#SET(CMAKE_C_FLAGS_PROFILING "-g -O0 -pg -Wp,-U_FORTIFY_SOURCE") -#SET(CMAKE_C_FLAGS_DEBUG "-g -O0 -ggdb -Wp,-U_FORTIFY_SOURCE") -#SET(CMAKE_C_FLAGS_RELEASE "-g -O2") -#SET(CMAKE_C_FLAGS_CCOV "-g -O2 --coverage") -#ADD_COMPILE_OPTIONS("-fPIC") +set(CMAKE_C_FLAGS_PROFILING "-g -O0 -pg -Wp,-U_FORTIFY_SOURCE") +set(CMAKE_C_FLAGS_DEBUG "-g -O0 -ggdb -Wp,-U_FORTIFY_SOURCE") +set(CMAKE_C_FLAGS_RELEASE "-g -O2") +set(CMAKE_C_FLAGS_CCOV "-g -O2 --coverage") ########################################################################### |