Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
548cd0e6
Commit
548cd0e6
authored
8 years ago
by
Ben Cumming
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #6 from bcumming/cleanup
fixed modcc->hpp dependencies
parents
af6d8b5c
15585340
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+4
-3
4 additions, 3 deletions
CMakeLists.txt
mechanisms/CMakeLists.txt
+2
-2
2 additions, 2 deletions
mechanisms/CMakeLists.txt
with
6 additions
and
5 deletions
CMakeLists.txt
+
4
−
3
View file @
548cd0e6
...
@@ -87,7 +87,6 @@ else()
...
@@ -87,7 +87,6 @@ else()
set
(
modcc
"
${
MODCC_BIN
}
"
)
set
(
modcc
"
${
MODCC_BIN
}
"
)
set
(
use_external_modcc ON BOOL
)
set
(
use_external_modcc ON BOOL
)
endif
()
endif
()
message
(
"==== modcc: "
${
modcc
}
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/tclap/include
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/tclap/include
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/vector
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/vector
)
...
@@ -99,8 +98,10 @@ if( "${WITH_TBB}" STREQUAL "ON" )
...
@@ -99,8 +98,10 @@ if( "${WITH_TBB}" STREQUAL "ON" )
include_directories
(
${
TBB_INCLUDE_DIRS
}
)
include_directories
(
${
TBB_INCLUDE_DIRS
}
)
endif
()
endif
()
# TODO : only compile modcc if it is not provided externally
# only compile modcc if it is not provided externally
add_subdirectory
(
modcc
)
if
(
use_external_modcc
)
add_subdirectory
(
modcc
)
endif
()
add_subdirectory
(
mechanisms
)
add_subdirectory
(
mechanisms
)
add_subdirectory
(
src
)
add_subdirectory
(
src
)
add_subdirectory
(
tests
)
add_subdirectory
(
tests
)
...
...
This diff is collapsed.
Click to expand it.
mechanisms/CMakeLists.txt
+
2
−
2
View file @
548cd0e6
...
@@ -21,7 +21,7 @@ foreach(mech ${mechanisms})
...
@@ -21,7 +21,7 @@ foreach(mech ${mechanisms})
else
()
else
()
add_custom_command
(
add_custom_command
(
OUTPUT
"
${
hpp
}
"
OUTPUT
"
${
hpp
}
"
DEPENDS
modparser
"
${
mod
}
"
DEPENDS
"
${
mod
}
"
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
WORKING_DIRECTORY
"
${
CMAKE_CURRENT_SOURCE_DIR
}
"
COMMAND
${
modcc
}
${
modcc_flags
}
${
mod
}
-o
${
hpp
}
COMMAND
${
modcc
}
${
modcc_flags
}
${
mod
}
-o
${
hpp
}
)
)
...
@@ -31,5 +31,5 @@ foreach(mech ${mechanisms})
...
@@ -31,5 +31,5 @@ foreach(mech ${mechanisms})
endforeach
()
endforeach
()
# Fake target to always trigger .mod -> .hpp dependencies because wtf CMake
# Fake target to always trigger .mod -> .hpp dependencies because wtf CMake
add_custom_target
(
build_all_mods DEPENDS
${
all_mod_hpps
}
)
add_custom_target
(
build_all_mods DEPENDS
${
all_mod_hpps
}
modcc
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment