Skip to content

Commit

Permalink
Fix for msvc so python parts build with nmake not vcexpress
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8288 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Mar 27, 2008
1 parent 922cd7f commit 3005fd8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Expand Up @@ -170,6 +170,17 @@ IF (WIN32)
SET (DEFAULT_INCLUDE_SUBDIR include)

IF (MSVC)
# Python parts need to be build with nmake not vcexpress
# if you dont add this clause, extra blank msvc projects
# will pop up mid way through the build process and block
# the build, plus the python bindings wont build correctly
SET (CMAKE_MAKE_PROGRAM nmake)
# put all the build products into a single directory
# under build (doesnt affect install target) to make for
# easier debugging.
SET(OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
SET(EXECUTABLE_OUTPUT_PATH ${OUTPUT_DIR})
SET(LIBRARY_OUTPUT_PATH ${OUTPUT_DIR})
#tell msvc compiler to use main instead of winmain as the
#application entry point
SET(QT_USE_QTMAIN TRUE)
Expand Down

0 comments on commit 3005fd8

Please sign in to comment.