Class: CKick::CFlag

Inherits:
CompilerFlag show all
Defined in:
lib/ckick/cflag.rb

Overview

C compiler flag representation

Instance Attribute Summary

Attributes inherited from CompilerFlag

#content

Instance Method Summary collapse

Methods inherited from CompilerFlag

#eql?, #hash, #initialize, #raw_flag, #to_hash_element, #to_s

Constructor Details

This class inherits a constructor from CKick::CompilerFlag

Instance Method Details

#cmakeObject

appends $CMAKE_C_FLAGS (CMake C compiler flags)



13
14
15
# File 'lib/ckick/cflag.rb', line 13

def cmake
  %Q|set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} #{@content}")|
end