# HG changeset patch # User Sebastien Jodogne # Date 1694495510 -7200 # Node ID 961d7f13759e2b84592f52916e7a37cc1ea29bf1 # Parent 609ba59d1c54139f3ee9ee57916683f60953397b trying to replace by ${CMAKE_BUILD_TYPE} for macOS diff -r 609ba59d1c54 -r 961d7f13759e Resources/CMake/LibVtkConfiguration.cmake --- a/Resources/CMake/LibVtkConfiguration.cmake Mon Sep 11 22:26:29 2023 +0200 +++ b/Resources/CMake/LibVtkConfiguration.cmake Tue Sep 12 07:11:50 2023 +0200 @@ -71,7 +71,7 @@ -DCMAKE_C_COMPILER=gcc BUILD_COMMAND - ${CMAKE_COMMAND} --build --config --parallel ${NumberOfPhysicalCores} -t + ${CMAKE_COMMAND} --build --config ${CMAKE_BUILD_TYPE} --parallel ${NumberOfPhysicalCores} -t VTKCompileToolsConfig.cmake INSTALL_COMMAND "" # Skip the install step @@ -149,7 +149,7 @@ -DCMAKE_OSX_ARCHITECTURES=${CMAKE_OSX_ARCHITECTURES} BUILD_COMMAND - ${CMAKE_COMMAND} --build --config --parallel ${NumberOfPhysicalCores} -t + ${CMAKE_COMMAND} --build --config ${CMAKE_BUILD_TYPE} --parallel ${NumberOfPhysicalCores} -t vtkCommonCore vtkCommonDataModel vtkCommonMath @@ -196,12 +196,7 @@ ExternalProject_Get_Property(VTK binary_dir) ExternalProject_Get_Property(VTK source_dir) - if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") - # TODO - This looks very strange - link_directories(${binary_dir}/../Debug) - else() - link_directories(${binary_dir}/lib) - endif() + link_directories(${binary_dir}/lib) foreach(dir IN ITEMS Common/Core