mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-21 00:05:53 -04:00
fix windows build
This commit is contained in:
parent
baa5d90ddc
commit
4c92689d14
@ -481,7 +481,6 @@ IF (WIN32)
|
||||
|
||||
SET (QGIS_APP_SRCS ${QGIS_APP_SRCS} main.cpp ${IMAGE_RCC_SRCS} ${TEST_RCC_SRCS})
|
||||
SET (QGIS_APPMAIN_SRCS mainwin.cpp)
|
||||
SET_SOURCE_FILES_PROPERTIES(mainwin.cpp PROPERTIES COMPILE_FLAGS -DMAINWIN_DLL=\\\"qgis_app.dll\\\")
|
||||
|
||||
IF (MSVC)
|
||||
SET (QGIS_APPMAIN_SRCS ${QGIS_APPMAIN_SRCS} ${CMAKE_CURRENT_SOURCE_DIR}/qgis_win32.rc)
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
|
||||
std::string moduleExeBaseName( void )
|
||||
{
|
||||
@ -104,10 +105,10 @@ int CALLBACK WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdL
|
||||
}
|
||||
}
|
||||
|
||||
HINSTANCE hGetProcIDDLL = LoadLibrary( MAINWIN_DLL );
|
||||
HINSTANCE hGetProcIDDLL = LoadLibrary( "qgis_app.dll" );
|
||||
if ( !hGetProcIDDLL )
|
||||
{
|
||||
std::cerr << "Could not load the " MAINWIN_DLL << std::endl;
|
||||
std::cerr << "Could not load the qgis_app.dll" << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user