Skip to content

Commit

Permalink
reordering configs, adding dependencies, fixing duplicate defines ecl…
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Jul 11, 2022
1 parent 8909a89 commit c7f5a9c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
14 changes: 7 additions & 7 deletions CMakeSettings.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"configurations": [
{
"name": "x64-Debug",
"name": "x64-Release",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"configurationType": "Release",
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x64_x64" ],
"variables": []
},
{
"name": "x64-Release",
"name": "x64-Debug",
"generator": "Ninja",
"configurationType": "Release",
"configurationType": "Debug",
"inheritEnvironments": [ "msvc_x64_x64" ],
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x64_x64" ],
"variables": []
}
]
Expand Down
3 changes: 2 additions & 1 deletion src/libsumo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ if (FOX_FOUND)
set(sumo_link_libraries ${sumoguilibs})
else ()
add_library(libsumocpp SHARED ${libsumostatic_STAT_SRCS})
add_dependencies(libsumocpp generate-version-h install_dll)
set(libsumo_link_library libsumostatic)
set(sumo_link_libraries ${sumolibs})
endif()
Expand Down Expand Up @@ -171,7 +172,6 @@ if(SWIG_FOUND)
endif()
if(PYTHONLIBS_FOUND)
include_directories(${PYTHON_INCLUDE_PATH})
# set(CMAKE_SWIG_FLAGS "")
set(CMAKE_SWIG_FLAGS "-keyword") # is necessary for using keyword args
# other options which should be evaluated: -builtin, -modern, -extranative
set(SWIG_OUTFILE_DIR ${CMAKE_CURRENT_BINARY_DIR})
Expand All @@ -188,6 +188,7 @@ if(SWIG_FOUND)
else()
SWIG_ADD_MODULE(libsumo python libsumo.i)
endif()
add_dependencies(${SWIG_MODULE_libsumo_REAL_NAME} generate-version-h install_dll)
if ((GNU_COMPILER OR CLANG_COMPILER) AND NOT APPLE)
swig_link_libraries(libsumo -Wl,--whole-archive ${libsumo_link_library} ${sumolibs} -Wl,--no-whole-archive)
else()
Expand Down
4 changes: 4 additions & 0 deletions src/utils/gui/globjects/GLIncludes.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@
#include <config.h>

#ifdef WIN32
#ifndef NOMINMAX
#define NOMINMAX
#include <windows.h>
#undef NOMINMAX
#else
#include <windows.h>
#endif
#endif

#include <GL/gl.h>
Expand Down

0 comments on commit c7f5a9c

Please sign in to comment.