Skip to content

Commit

Permalink
Build system: Check and set path MSVC_IDE.
Browse files Browse the repository at this point in the history
  • Loading branch information
user-none committed Aug 7, 2011
1 parent b23a405 commit 1051e13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Sigil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,11 @@ else()
endforeach( lib )

# Set the path of the application executable
set( EXE_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX} )
if( MSVC_IDE )
set( EXE_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Release/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX} )
else()
set( EXE_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX} )
endif()

# Copy the application executable
add_custom_command( TARGET ${TARGET_FOR_COPY} PRE_BUILD
Expand Down

0 comments on commit 1051e13

Please sign in to comment.