mirror of https://github.com/davisking/dlib.git
Merge pull request #20 from Abai/master
Replace add_definitions with CMAKE_CXX_FLAGS in cmake file
This commit is contained in:
commit
97dc30bc63
|
@ -16,7 +16,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
# By default, g++ won't warn or error if you forget to return a value in a
|
# By default, g++ won't warn or error if you forget to return a value in a
|
||||||
# function which requires you to do so. This option makes it give a warning
|
# function which requires you to do so. This option makes it give a warning
|
||||||
# for doing this.
|
# for doing this.
|
||||||
add_definitions("-Wreturn-type")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wreturn-type")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Setup some options to allow a user to enable SSE and AVX instruction use.
|
# Setup some options to allow a user to enable SSE and AVX instruction use.
|
||||||
|
|
Loading…
Reference in New Issue