Removing second definition of COMPILER_IS_CLANG
This commit is contained in:
parent
570267bbe0
commit
3f96232ce8
@ -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
|
# We don't want the "lib" prefix, it can screw up python when it tries to search
|
||||||
# for our module
|
# for our module
|
||||||
set_target_properties( ${PROJECT_NAME} PROPERTIES PREFIX "")
|
set_target_properties( ${PROJECT_NAME} PROPERTIES PREFIX "")
|
||||||
@ -74,13 +73,13 @@ endif()
|
|||||||
set_target_properties( ${PROJECT_NAME} PROPERTIES
|
set_target_properties( ${PROJECT_NAME} PROPERTIES
|
||||||
LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/../../python )
|
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 )
|
if( CMAKE_COMPILER_IS_GNUCXX OR COMPILER_IS_CLANG )
|
||||||
# We want all warnings, and warnings should be treated as errors
|
# We want all warnings, and warnings should be treated as errors
|
||||||
add_definitions( -Wall -Wextra -Werror )
|
add_definitions( -Wall -Wextra -Werror )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
#############################################################################
|
||||||
|
|
||||||
add_subdirectory( tests )
|
add_subdirectory( tests )
|
||||||
|
Loading…
Reference in New Issue
Block a user