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

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

parent 9c25b2e1
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,8 @@ if( MSVC )
if( n GREATER 50 )
message(
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()
......@@ -13,11 +14,12 @@ if( MSVC )
if( n GREATER 50 )
message(
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()
set( CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj" )
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /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 )
project( Elastix )
# Include SuperElastix CMake scripts
list( APPEND CMAKE_MODULE_PATH
set( CMAKE_MODULE_PATH
"${CMAKE_CURRENT_SOURCE_DIR}/CMake"
${CMAKE_MODULE_PATH}
)
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