Skip to content
Snippets Groups Projects
Commit 4cea7e80 authored by Kasper Marstal's avatar Kasper Marstal
Browse files

COMP: ELASTIX-15 Added CMake scripts folder to CMAKE_MODULE_PATH #comment #resolve

parent 27c287ac
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,8 @@ if( MSVC ) ...@@ -5,7 +5,8 @@ if( MSVC )
if( n GREATER 50 ) if( n GREATER 50 )
message( message(
FATAL_ERROR FATAL_ERROR
"ITK source code directory path length is too long for MSVC (${n} > 50)." "Source code directory path length is too long for MSVC (${n} > 50)."
"Please move the source code directory to a directory with a shorter path."
) )
endif() endif()
...@@ -13,11 +14,12 @@ if( MSVC ) ...@@ -13,11 +14,12 @@ if( MSVC )
if( n GREATER 50 ) if( n GREATER 50 )
message( message(
FATAL_ERROR FATAL_ERROR
"ITK build directory path length is too long for MSVC (${n} > 50)." "Build directory path length is too long for MSVC (${n} > 50)."
"Please move the build directory to a directory with a shorter path."
) )
endif() endif()
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj" ) set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj" )
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /bigobj" ) set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /bigobj" )
set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /bigobj" ) set( CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /bigobj" )
endif() endif()
\ No newline at end of file
...@@ -8,8 +8,9 @@ set( MSVC_INCREMENTAL_DEFAULT ON ) ...@@ -8,8 +8,9 @@ set( MSVC_INCREMENTAL_DEFAULT ON )
project( Elastix ) project( Elastix )
# Include SuperElastix CMake scripts # Include SuperElastix CMake scripts
list( APPEND CMAKE_MODULE_PATH set( CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/CMake" "${CMAKE_CURRENT_SOURCE_DIR}/CMake"
${CMAKE_MODULE_PATH}
) )
if( ${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC" ) if( ${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC" )
......
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