Skip to content

Commit

Permalink
Merge pull request #1012 from laurennlam/fix-cmake-generator-plateform
Browse files Browse the repository at this point in the history
COMP: Fix compilation errors with latest cmake version

Pass the value of CMAKE_GENERATOR_PLATFORM to the build commands, which prevents failures if the platform is not x86.
  • Loading branch information
cookpa authored Jun 8, 2020
2 parents 29bdfbd + d9b2929 commit 1195345
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ ExternalProject_Add(${proj}
${CMAKE_OSX_EXTERNAL_PROJECT_ARGS}
${COMMON_EXTERNAL_PROJECT_ARGS}
-D${LOCAL_PROJECT_NAME}_SUPERBUILD:BOOL=OFF
-DCMAKE_GENERATOR_PLATFORM:STRING=${CMAKE_GENERATOR_PLATFORM}
INSTALL_COMMAND ""
)

Expand Down
1 change: 1 addition & 0 deletions SuperBuild/External_ITKv5.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ if(NOT DEFINED ${extProjName}_DIR AND NOT ${USE_SYSTEM_${extProjName}})
${CMAKE_OSX_EXTERNAL_PROJECT_ARGS}
${COMMON_EXTERNAL_PROJECT_ARGS}
${${proj}_CMAKE_OPTIONS}
-DCMAKE_GENERATOR_PLATFORM:STRING=${CMAKE_GENERATOR_PLATFORM}
## We really do want to install in order to limit # of include paths INSTALL_COMMAND ""
DEPENDS
${${proj}_DEPENDENCIES}
Expand Down
1 change: 1 addition & 0 deletions SuperBuild/External_KWStyle.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ if(NOT DEFINED ${extProjName}_EXE AND NOT ${USE_SYSTEM_${extProjName}})
${CMAKE_OSX_EXTERNAL_PROJECT_ARGS}
${COMMON_EXTERNAL_PROJECT_ARGS}
${${proj}_CMAKE_OPTIONS}
-DCMAKE_GENERATOR_PLATFORM:STRING=${CMAKE_GENERATOR_PLATFORM}
INSTALL_COMMAND ""
DEPENDS
${${proj}_DEPENDENCIES}
Expand Down
1 change: 1 addition & 0 deletions SuperBuild/External_SlicerExecutionModel.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ if(NOT ( DEFINED "${extProjName}_DIR" OR ( DEFINED "${USE_SYSTEM_${extProjName}}
${CMAKE_OSX_EXTERNAL_PROJECT_ARGS}
${COMMON_EXTERNAL_PROJECT_ARGS}
${${proj}_CMAKE_OPTIONS}
-DCMAKE_GENERATOR_PLATFORM:STRING=${CMAKE_GENERATOR_PLATFORM}
INSTALL_COMMAND ""
DEPENDS
${${proj}_DEPENDENCIES}
Expand Down
1 change: 1 addition & 0 deletions SuperBuild/External_VTK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ if(NOT ( DEFINED "USE_SYSTEM_${extProjName}" AND "${USE_SYSTEM_${extProjName}}"
${CMAKE_OSX_EXTERNAL_PROJECT_ARGS}
${COMMON_EXTERNAL_PROJECT_ARGS}
${${proj}_CMAKE_OPTIONS}
-DCMAKE_GENERATOR_PLATFORM:STRING=${CMAKE_GENERATOR_PLATFORM}
## We really do want to install in order to limit # of include paths INSTALL_COMMAND ""
DEPENDS
${${proj}_DEPENDENCIES}
Expand Down

0 comments on commit 1195345

Please sign in to comment.