mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-14 01:54:07 +02:00
Fix cmake for clang
This commit is contained in:
@@ -158,9 +158,12 @@ macro_optional_find_package(KDE4Installed)
|
|||||||
|
|
||||||
# macro_optional_find_package(KDE4)
|
# macro_optional_find_package(KDE4)
|
||||||
IF(KDE4_FOUND)
|
IF(KDE4_FOUND)
|
||||||
#KDE4 adds and removes some compiler flags that we don't like
|
IF( CMAKE_C_FLAGS )
|
||||||
STRING( REPLACE "-std=iso9899:1990" "" CLEAN_C_FLAGS ${CMAKE_C_FLAGS} )
|
# KDE4 adds and removes some compiler flags that we don't like
|
||||||
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" )
|
# (only for gcc not for clang e.g.)
|
||||||
|
STRING( REPLACE "-std=iso9899:1990" "" CLEAN_C_FLAGS ${CMAKE_C_FLAGS} )
|
||||||
|
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions" )
|
||||||
|
ENDIF()
|
||||||
ELSE()
|
ELSE()
|
||||||
SET( CLEAN_C_FLAGS ${CMAKE_C_FLAGS} )
|
SET( CLEAN_C_FLAGS ${CMAKE_C_FLAGS} )
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
Reference in New Issue
Block a user