Skip to content

Commit

Permalink
CMake: Including the command "target_compile_options" in the project …
Browse files Browse the repository at this point in the history
…file.
  • Loading branch information
tecnotercio authored and itsmattkc committed May 8, 2019
1 parent 87756c6 commit 893a94b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ if(UNIX AND NOT APPLE AND NOT DEFINED OpenGL_GL_PREFERENCE)
set(OpenGL_GL_PREFERENCE LEGACY)
endif()

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-reorder")
endif()

find_package(OpenGL REQUIRED)

find_package(OpenColorIO REQUIRED)
Expand Down Expand Up @@ -501,6 +497,8 @@ add_executable(${OLIVE_TARGET}

target_compile_definitions(${OLIVE_TARGET} PRIVATE ${OLIVE_DEFINITIONS})

target_compile_options(${OLIVE_TARGET} PRIVATE $<$<CXX_COMPILER_ID:GNU>:-Wno-reorder>)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

target_link_libraries(${OLIVE_TARGET}
Expand Down

0 comments on commit 893a94b

Please sign in to comment.