1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-23 18:17:46 +00:00

fixed search paths for mysql cpp connector

- fixed edit and continue being disabled (-DCMAKE_BUILD_TYPE="Debug" to enable)
This commit is contained in:
Tahir Akhlaq 2017-09-12 18:46:25 +01:00
parent 309da788e3
commit a98b03a7e0
3 changed files with 9 additions and 4 deletions

View file

@ -38,10 +38,6 @@ else()
endif()
endif()
if( NOT $MYSQLCONNECTORCPP_ROOT_DIR )
set( MYSQLCONNECTORCPP_ROOT_DIR "G:\\programming\\libs\\MySQL1.1.9" )
endif()
FIND_PACKAGE(MySQLConnectorCPP)
if( MYSQLCONNECTORCPP_FOUND )

View file

@ -10,6 +10,9 @@
set(MYSQLCONNECTORCPP_ROOT_DIR
"${MYSQLCONNECTORCPP_ROOT_DIR}"
"C:\\Program Files (x86)\\MySQL\\Connector.C++ 1.1\\"
"C:\\Program Files\\MySQL\\Connector.C++ 1.1\\"
"G:\\programming\\libs\\MySQL1.1.9\\"
CACHE
PATH
"Where to start looking for this component.")

View file

@ -8,6 +8,12 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHc")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
# edit and continue
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
message(STATUS "Disabling /SAFESEH")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
endif()
endif()