Skip to content

Commit

Permalink
Fix CMake warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Feb 24, 2015
1 parent e6f2b44 commit fe50af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ function( ADD_PRECOMPILED_HEADER Target Header )
add_custom_target( ${Target}-pch DEPENDS "${OBJ_DIR}/${Target}.h.gch" )
add_dependencies( ${Target} ${Target}-pch )

if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
if( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
set_target_properties( ${Target} PROPERTIES COMPILE_FLAGS "-include-pch ${OBJ_DIR}/${Target}.h.gch" )
else()
set_target_properties( ${Target} PROPERTIES COMPILE_FLAGS "-include ${OBJ_DIR}/${Target}.h -Winvalid-pch" )
Expand Down

0 comments on commit fe50af5

Please sign in to comment.