A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put ns3 sources in place.
[simgrid.git]
/
buildtools
/
Cmake
/
Modules
/
FindNS3.cmake
diff --git
a/buildtools/Cmake/Modules/FindNS3.cmake
b/buildtools/Cmake/Modules/FindNS3.cmake
index
8906d1f
..
aca50fd
100644
(file)
--- a/
buildtools/Cmake/Modules/FindNS3.cmake
+++ b/
buildtools/Cmake/Modules/FindNS3.cmake
@@
-59,6
+59,11
@@
if(HAVE_NS3_LIB AND HAVE_CORE_MODULE_H)
if(NOT operation1)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-L${HAVE_NS3_LIB} ")
endif(NOT operation1)
if(NOT operation1)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-L${HAVE_NS3_LIB} ")
endif(NOT operation1)
+
+ string(REGEX MATCH "-I${HAVE_CORE_MODULE_H} " operation1 "${CMAKE_C_FLAGS}")
+ if(NOT operation1)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-I${HAVE_CORE_MODULE_H} ")
+ endif(NOT operation1)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}-I${HAVE_CORE_MODULE_H} -L${HAVE_NS3_LIB} ")
endif(NOT operation)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}-I${HAVE_CORE_MODULE_H} -L${HAVE_NS3_LIB} ")
endif(NOT operation)