cmake: Fix SWIG_FLAGS when enabling several languages
This commit is contained in:
@@ -6,6 +6,8 @@ if(NOT TARGET ortools::ortools)
|
||||
message(FATAL_ERROR ".Net: missing ortools TARGET")
|
||||
endif()
|
||||
|
||||
# Will need swig
|
||||
set(CMAKE_SWIG_FLAGS)
|
||||
find_package(SWIG)
|
||||
include(UseSWIG)
|
||||
|
||||
|
||||
@@ -6,6 +6,8 @@ if(NOT TARGET ortools::ortools)
|
||||
message(FATAL_ERROR "Java: missing ortools TARGET")
|
||||
endif()
|
||||
|
||||
# Will need swig
|
||||
set(CMAKE_SWIG_FLAGS)
|
||||
find_package(SWIG REQUIRED)
|
||||
include(UseSWIG)
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@ if(NOT TARGET ortools::ortools)
|
||||
endif()
|
||||
|
||||
# Will need swig
|
||||
set(CMAKE_SWIG_FLAGS)
|
||||
find_package(SWIG REQUIRED)
|
||||
include(UseSWIG)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user