diff options
author | drenfong.wang <drenfong.wang@intel.com> | 2019-02-12 06:56:11 +0000 |
---|---|---|
committer | drenfong.wang <drenfong.wang@intel.com> | 2019-02-12 06:56:11 +0000 |
commit | 15b50e99b52df68c92a92fc54aa994fc1a2753ff (patch) | |
tree | d2c5cabedccb7cd8b622884247667ac1b6640859 | |
parent | 834d642159659bc1601ad49688a7caff4ff52388 (diff) |
fix gcc compile args
Change-Id: Ib6c6042619e7afcb561300762e49dbbfd2ff57cf
Signed-off-by: drenfong.wang <drenfong.wang@intel.com>
-rw-r--r-- | src/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/plugins/CMakeLists.txt | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6937746..59b93d8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,7 +26,7 @@ string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER) # set compiler options set(CMAKE_EXPORT_COMPILE_COMMANDS 1) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99") +set(CMAKE_C_FLAGS "-Wall -std=gnu99") set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O2") set(CMAKE_C_FLAGS_DEBUG "-g -O0") diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt index ae8e33b..08003f7 100644 --- a/src/plugins/CMakeLists.txt +++ b/src/plugins/CMakeLists.txt @@ -11,18 +11,18 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -# -# set compiler options + +cmake_minimum_required(VERSION 2.8) +project(sysrepo-vpp-plugins) + +# set compiler option set(CMAKE_EXPORT_COMPILE_COMMANDS 1) set(CMAKE_C_FLAGS "-Wall -std=gnu99") set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O2") set(CMAKE_C_FLAGS_DEBUG "-g -O0") set (CMAKE_INSTALL_LIBDIR "/usr/lib") -cmake_minimum_required(VERSION 2.8) -project(sysrepo-vpp-plugins) - # Cmake find modules list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../cmake") |