Skip to content
Snippets Groups Projects
Commit 6495a540 authored by Shawn Waldon's avatar Shawn Waldon
Browse files

Define target before setting target_compile_features

parent 7ee82e46
No related branches found
No related tags found
No related merge requests found
......@@ -371,9 +371,6 @@ if (NOT CMAKE_VERSION VERSION_LESS "3.3")
option(VTK_USE_CXX11_FEATURES "Build VTK using C++11 features (if available)"
${VTK_USE_CXX11_DEFAULT})
if (VTK_USE_CXX11_FEATURES)
target_compile_features(vtkCommonCore PUBLIC cxx_final cxx_override cxx_nullptr)
endif()
else()
FILE(WRITE "${CMAKE_CURRENT_BINARY_DIR}/vtkCompilerFeatureDetection.h"
"
......@@ -677,4 +674,8 @@ endif()
vtk_module_library(vtkCommonCore ${Module_SRCS})
if (VTK_USE_CXX11_FEATURES)
target_compile_features(vtkCommonCore PUBLIC cxx_final cxx_override cxx_nullptr)
endif()
vtk_module_link_libraries(vtkCommonCore LINK_PRIVATE ${CMAKE_THREAD_LIBS} LINK_PUBLIC ${VTK_SMP_IMPLEMENTATION_LIBRARIES})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment