From 3f96232ce8d64a59f77c46036f37e3ae19fbd0d2 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Wed, 4 Jul 2012 21:50:28 -0700 Subject: [PATCH] Removing second definition of COMPILER_IS_CLANG --- cpp/ycm/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cpp/ycm/CMakeLists.txt b/cpp/ycm/CMakeLists.txt index a2660cd5..e12327ff 100644 --- a/cpp/ycm/CMakeLists.txt +++ b/cpp/ycm/CMakeLists.txt @@ -59,7 +59,6 @@ target_link_libraries( ${PROJECT_NAME} ############################################################################# - # We don't want the "lib" prefix, it can screw up python when it tries to search # for our module set_target_properties( ${PROJECT_NAME} PROPERTIES PREFIX "") @@ -74,13 +73,13 @@ endif() set_target_properties( ${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/../../python ) -if ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" ) - set( COMPILER_IS_CLANG true ) -endif() +############################################################################# if( CMAKE_COMPILER_IS_GNUCXX OR COMPILER_IS_CLANG ) # We want all warnings, and warnings should be treated as errors add_definitions( -Wall -Wextra -Werror ) endif() +############################################################################# + add_subdirectory( tests )