Changing CMAKE_CXX_FLAGS in project

后端 未结 10 759
一个人的身影
一个人的身影 2020-12-08 10:05

I have the following content in my CMakeLists.txt:

project( Matfile )

SET ( CMAKE_CXX_FLAGS \"-std=c++0x\" )

set ( SOURCES
      \"foo.cpp\"
      \"bar.cp         


        
10条回答
  •  孤街浪徒
    2020-12-08 10:15

    Perhaps this would work better:

    set_source_files_properties(${SOURCES}
           PROPERTIES
           COMPILE_FLAGS  "-std=c++0x")
    

提交回复
热议问题